-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] option to include/exclude categories from Test APKs
In some QA needs to run tests on devices without a network connection, so an option to disable tests that rely on the network in Mono.Android-Tests is needed. NUnit has the option to include or exclude tests based on the `CategoryAttribute`. Various tests were decorated with `[Category("InetAccess")]` that appeared to use the internet. To verify this works, I ran the tests with my internet disabled. The test run for Mono.Android-Tests went down from 106 to 84 tests, with no failures. To exclude a category, on Windows: msbuild Xamarin.Android.sln /t:RunApkTests /p:ExcludeCategories=InetAccess On MacOS/Linux: make run-apk-tests EXCLUDECATEGORIES=InetAccess If you want to specify multiple categories, use `,` (comma) to delimit each category. This was what NUnit uses to delimit categories as per their documentation here: http://nunit.org/docs/2.6/consoleCommandLine.html I also added the option specify `Include` as well, but it isn't particularly useful for this case.
- Loading branch information
1 parent
19bd3de
commit e58c5c5
Showing
10 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters