Submit a selection of tests to TestCloud via the command line

In visual studio my solution has 20 classes (.cs files) with a number of tests in each class.
In the unit tests section of VS I can run either:
A single test
All the tests in a class
All the tests in the solution
Or a selection of tests by multiselecting the tests and running.

I am now submitted to test cloud using the following command line

test-cloud.exe submit --devices= --assembly-dir= --user=

How can I specify which tests to run. I do not want to run all the tests in the solution as it exceeds the 6 hours limit in test cloud.

Thanks

Best Answer

  • RupertFinnRupertFinn US ✭✭
    Accepted Answer

    Found out the answer using categories

    [TestFixture]
    [Category("listoftests")]
    public class Something
    {
    [Test}
    public void Test1()
    {
    ...
    }
    ...

    "test-cloud.exe submit PATH-TO-IPA TEAM API KEY --devices=DEVICES --assembly-dir=PATH-TO-TEST-ASSEMBLY-DIR --user=EMAIL" --category listoftests

Answers

  • RupertFinnRupertFinn USMember ✭✭

    Command line should be the following but the markup got to it.

    "test-cloud.exe submit PATH-TO-IPA TEAM API KEY --devices=DEVICES --assembly-dir=PATH-TO-TEST-ASSEMBLY-DIR --user=EMAIL"

  • RupertFinnRupertFinn USMember ✭✭
    Accepted Answer

    Found out the answer using categories

    [TestFixture]
    [Category("listoftests")]
    public class Something
    {
    [Test}
    public void Test1()
    {
    ...
    }
    ...

    "test-cloud.exe submit PATH-TO-IPA TEAM API KEY --devices=DEVICES --assembly-dir=PATH-TO-TEST-ASSEMBLY-DIR --user=EMAIL" --category listoftests

Sign In or Register to comment.