Search code examples
firebase-test-lab

how to run this flag in IOS tests, --test-targets?


I'm trying to run the xctest tests for IOS, but I have a problem when I want to run a single class, in the testlab firebase, but all the classes that I have in my project are still running, and I need to run a single class, this is possible?


Solution

  • It is possible if you're using the gcloud command-line tool to create your test matrix.

    Specify the tests you wish to run in a copy of your .xctestrun file (same as how you would do this when running tests locally using XCode), and pass that modified xctestrun file using:

    gcloud firebase test ios run --test=<your test zip> --xctestrun-file=<your customized .xctestrun file>