Giter Site home page Giter Site logo

Comments (5)

fastlanebot avatar fastlanebot commented on May 2, 2024
@KrauseFx commented

That's a great idea!
Maybe it should be ruby blocks, just like in "deliver". I'll take a look later today.

Sent from my iPhone

On 17.11.2014, at 02:36, rrichter [email protected] wrote:

Wouldn't it be great to have setup and tearDown -methods which run in between language and device changes ?

Usecase(s)

  1. Clean iossimulator before each run to have a clean state
  2. Populate databases and / or user profiles
  3. ...

Additions to Snapfile:

Shell command ran before device change

setup_device_change './setup_device.sh'

Shell command ran after device change

teardown_device_change './teardown_device.sh'

Shell command ran before language change

setup_language_change './setup_language.sh'

Shell command ran after language change

teardown_language_change './teardown_language.sh'
Additions to Runner.rb

SnapshotConfig.shared_instance.devices.each do |device|
# Run device specific setup methods
SnapshotConfig.shared_instance.languages.each do |language|
# Run device specific setup methods

      ...
      end
    end
  end

What do you think?

β€”
Reply to this email directly or view it on GitHub.

from fastlane.

fastlanebot avatar fastlanebot commented on May 2, 2024
@KrauseFx commented

I thought about it, I want to have a similar API as Deliver: https://github.com/KrauseFx/deliver#usage

I'll let you know when I'm finished implementing this.

from fastlane.

fastlanebot avatar fastlanebot commented on May 2, 2024
@KrauseFx commented

Here we go: fastlane-old/snapshot@095e1c4

Take a look at the updated README.

Install the latest version by downloading the git repo, and running sudo rake install

Let me know if it works as expected.

from fastlane.

fastlanebot avatar fastlanebot commented on May 2, 2024
@rrichter commented

Works great and gives tons of flexibility! Thanks a lot. πŸ‘

from fastlane.

fastlanebot avatar fastlanebot commented on May 2, 2024
@KrauseFx commented

Great to hear, thanks for your response.
I already released a new version, you can install it using sudo gem update snapshot

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.