Skip to content

Conversation

@itaybre
Copy link
Collaborator

@itaybre itaybre commented Nov 19, 2024

Uses:

  • emerge configure snapshots-ios to create a sample config file
  • emerge config snapshots-ios --os-version -launch-arguments=ARG1,ARG2 --env-variables VAR1=VALUE1,VAR2=VALUE2 --exact-match-excluded-previews MyView --regex-excluded-previews "Message(ChatView|View)" to create a config file with parameters
  • emerge configure snapshots-iOS --interactive to create a config file with a step by step process

module EmergeCLI
module Commands
module Config
class Snapshots < EmergeCLI::Commands::GlobalOptions
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be SnapshotsIOS so we can potentially support Android in the future.


def get_os_version(prompt)
os_version = prompt.select('Select the OS version you want to run the tests on') do |answer|
answer.choice '17.2', 17.2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pull all of our supported OS versions into constants?

@itaybre itaybre merged commit 9c7a92b into main Nov 19, 2024
@itaybre itaybre deleted the feature/snapshots branch November 19, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants