Commit 32d9484
[tests] Category support in TestRunner.NUnit (#1963)
Context: #1534
The `DotNetInterfacesShouldEqualJavaInterfaces()` unit test
*occasionally* fails on certain Android devices, such as:
* [Oneplus One](https://gist.github.com/pjcollins/50b3036dd4a0b4a4d881a24fe49ab30d):
09-25 12:36:18.234 I/mono-stdout(26038): [FAIL] : #6.3 (dummy0 not found in Java interfaces)
* [Samsung S8](https://gist.github.com/pjcollins/5782e1bc225cdf105a75491e23f257d6)
09-29 10:26:41.754 I/mono-stdout(18006): Expected: 19
09-29 10:26:41.754 I/mono-stdout(18006): But was: 5
* [Nexus 6p (API 25)](https://gist.github.com/pjcollins/062f2124e1e76561809193450f97e768)
09-29 10:26:05.053 I/mono-stdout(32432): Expected: 22
09-29 10:26:05.053 I/mono-stdout(32432): But was: 4
We do not yet understand what is causing these failures.
That said, QA doesn't want to continue seeing these errors in QA
builds, as reviewing "errors for which we've already filed bugs" is
tedious and annoying, and makes it easier to overlook new issues.
Extend the `[CategoryAttribute]` support in 096210c so that the new
`TestRunner.NUnit` test runner (c4e8165) can also use the same
`$(ExcludeCategories)` MSBuild property to cause tests to be skipped.
Add `[Category("NetworkInterfaces")]` to the
`DotNetInterfacesShouldEqualJavaInterfaces()` test.
Together, these two changes will allow QA to selectively skip the
`DotNetInterfacesShouldEqualJavaInterfaces()` test.1 parent 306d119 commit 32d9484
File tree
3 files changed
+29
-1
lines changed- src/Mono.Android/Test/System.Net
- tests
- TestRunner.Core
- TestRunner.NUnit
3 files changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
318 | 329 | | |
319 | 330 | | |
320 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
| |||
54 | 65 | | |
55 | 66 | | |
56 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
57 | 71 | | |
58 | 72 | | |
59 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
| |||
0 commit comments