When I run tests on XTC, through command line, I just add --include and that's how I categorize my tests.
Is it possible to do this when running tests on Mobile Center acording that Mobile Center uses XTC?
you can use the --include-category "category_name" option.
If you should need more than one category, then you need to use --include-category multiple times.
Hey @AnthonyMehallel, I'm currently using appcenter version 1.0.5, I'm not sure if the placement of the parameter particularly matters. But here is an example of how I use it in my command
appcenter test run uitest
Do note that there are no quotes when specifying the include category
@Glenn.Wilson Can you please help?
The way I run tests on mobile azure is like:
mobile-center test run uitest
For run on XTC, I enter:
Is there any way to do something like --include "category_name" when running tests on mobile.azzure??
Hi @Aquablue ,
Can you specify the version of appcenter cli
Can you specify where you specify the parameter : --include-category "category_name"
Hi @BlankSparrow ,
I would like to specify the Nunit Category when we run Xamarin.UITest from TFS to App Center :
the Task "app center test" uses 2 command line, the first : appcenter test prepare uitest (it will create a manifest.json)
and the second command line "appcenter run manifest" (we can not specify the parameter --include-category with the command line "appcenter run from the manifest")
So the question is : how to specify the parameter include-category (as well as all the other parameters available for uitest ) in the manifest in order to the command line “appcenter run manifest” can use/read it ?
@BlankSparrow Thank you, this really works. Also, I want to add that important thing is to create a build with just Android or just iOS tests. In AbstractSetup, I have this:
and, when I build test, I do it with the following command:
msbuild my-tests /p:DefineConstants=RUN_DROID_ONLY (only for Android)
msbuild my-tests /p:DefineConstants=RUN_IOS_ONLY (only for iOS)
And then, I am able to execute tests on appcentar without any issues.
I hope this will be helpful to someone.
@EmrahDautbegovic Glad I could help .
@AnthonyMehallel I haven't had any experience using a manifest to execute test run so I wont be able to add any input into your scenario.
Saying that, I am now curious about them so I've sent a message off to the appcenter support chat to find out if there is any documentation that they have available.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies