Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass multiple values to --test-targets argument via CLI #562

Closed
v-ahadke opened this issue Jun 17, 2019 · 1 comment · Fixed by #563
Closed

Pass multiple values to --test-targets argument via CLI #562

v-ahadke opened this issue Jun 17, 2019 · 1 comment · Fixed by #563

Comments

@v-ahadke
Copy link

v-ahadke commented Jun 17, 2019

I am trying to use the flank to run the iOS UITests on Firebase Lab. My test suite contains more than 100 tests out of which I need to run only few tests dynamically as per business logic. I am able to use -test-targets in yml file but I am trying to pass these values via CLI so that dynamic values can be passed. I tried multiple ways but firebase runs all the tests. Below are the few formats I have used but no luck,

  1. java -jar flank.jar firebase test ios run --config ./fastlane/flank.ios.yml --test-targets MyClassA/testA --test-targets MyClassB
  2. java -jar flank.jar firebase test ios run --config ./fastlane/flank.ios.yml --test-targets [MyClassA/testA,MyClassB]
  3. java -jar flank.jar firebase test ios run --config ./fastlane/flank.ios.yml --test-targets: MyClassA/testA,MyClassB

Can you please let me know what is correct format to run only few tests via CLI? Thanks

@bootstraponline
Copy link
Contributor

--test-targets=a,b,c is the syntax for using the CLI.

https://github.com/TestArmada/flank/blob/ca27667180a5c941f362ca2cc79d3d9aa6a77924/test_runner/src/test/kotlin/ftl/cli/firebase/test/ios/IosRunCommandTest.kt#L174

You can also use a regular expression. Let me know if that helps.

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 a pull request may close this issue.

2 participants