Commit 1d8d79f
committed
CI: replace individual test exclusions with TestCategory-based filtering
Replace the 18-line list of individual Name!= and FullyQualifiedName!~
exclusions in the CI workflow with two TestCategory filters:
- TestCategory!=OpenBugs (global, all platforms)
- TestCategory!=WindowsOnly (Linux/macOS only)
This means adding new bug reproduction tests or platform-specific tests
only requires adding [TestCategory("OpenBugs")] or [TestCategory("WindowsOnly")]
to the test class or method — no CI workflow changes needed.
Classes tagged [TestCategory("OpenBugs")]:
- OpenBugs (38 tests)
- OpenBugsBitmap (11 tests, also WindowsOnly)
- NpAnyTest (np.any with axis is buggy)
- np_all_axis_Test (np.all with axis is buggy)
- Issue448
Individual methods tagged [TestCategory("OpenBugs")] in NDArray.Indexing.Test.cs:
MaskSetter, Compare, Masking_2D_over_3D, Combining_IndexArrays_with_Slices,
Combining_MaskArrays_with_Slices, IndexNDArray_Get_Case7,
IndexNDArray_Get_Case7_Broadcasted, IndexNDArray_Get_Case8_Broadcasted,
IndexNDArray_Set_Case2/3/4, IndexNDArray_Set_Case8_Broadcasted,
IndexNDArray_sliced3dreshaped_indexed_by_1d_1d
Classes tagged [TestCategory("WindowsOnly")]:
- BitmapWithAlphaTests
- BitmapExtensionsTests
- OpenBugsBitmap
Removed [ClassInitialize] RequireWindows guards from Bitmap test classes
since the category filter handles platform exclusion at the CI level.
Verified: 0 failures with both filter combinations:
TestCategory!=OpenBugs → 1636 passed
TestCategory!=OpenBugs & TestCategory!=WindowsOnly → 1572 passed1 parent 9d6e233 commit 1d8d79f
File tree
9 files changed
+28
-43
lines changed- .github/workflows
- test/NumSharp.UnitTest
- Issues
- Logic
- NumSharp.Bitmap
- Selection
9 files changed
+28
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
42 | 26 | | |
43 | 27 | | |
44 | 28 | | |
| |||
49 | 33 | | |
50 | 34 | | |
51 | 35 | | |
52 | | - | |
| 36 | + | |
53 | 37 | | |
54 | | - | |
| 38 | + | |
55 | 39 | | |
56 | 40 | | |
57 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
1106 | 1108 | | |
1107 | 1109 | | |
1108 | 1110 | | |
| 1111 | + | |
1109 | 1112 | | |
1110 | 1113 | | |
1111 | 1114 | | |
| |||
1139 | 1142 | | |
1140 | 1143 | | |
1141 | 1144 | | |
| 1145 | + | |
1142 | 1146 | | |
1143 | 1147 | | |
1144 | 1148 | | |
| |||
1152 | 1156 | | |
1153 | 1157 | | |
1154 | 1158 | | |
| 1159 | + | |
1155 | 1160 | | |
1156 | 1161 | | |
1157 | 1162 | | |
| |||
1252 | 1257 | | |
1253 | 1258 | | |
1254 | 1259 | | |
| 1260 | + | |
1255 | 1261 | | |
1256 | 1262 | | |
1257 | 1263 | | |
| |||
1334 | 1340 | | |
1335 | 1341 | | |
1336 | 1342 | | |
| 1343 | + | |
1337 | 1344 | | |
1338 | 1345 | | |
1339 | 1346 | | |
| |||
1342 | 1349 | | |
1343 | 1350 | | |
1344 | 1351 | | |
| 1352 | + | |
1345 | 1353 | | |
1346 | 1354 | | |
1347 | 1355 | | |
| |||
1350 | 1358 | | |
1351 | 1359 | | |
1352 | 1360 | | |
| 1361 | + | |
1353 | 1362 | | |
1354 | 1363 | | |
1355 | 1364 | | |
| |||
1382 | 1391 | | |
1383 | 1392 | | |
1384 | 1393 | | |
| 1394 | + | |
1385 | 1395 | | |
1386 | 1396 | | |
1387 | 1397 | | |
| |||
1439 | 1449 | | |
1440 | 1450 | | |
1441 | 1451 | | |
| 1452 | + | |
1442 | 1453 | | |
1443 | 1454 | | |
1444 | 1455 | | |
| |||
1452 | 1463 | | |
1453 | 1464 | | |
1454 | 1465 | | |
| 1466 | + | |
1455 | 1467 | | |
1456 | 1468 | | |
1457 | 1469 | | |
| |||
1468 | 1480 | | |
1469 | 1481 | | |
1470 | 1482 | | |
| 1483 | + | |
1471 | 1484 | | |
1472 | 1485 | | |
1473 | 1486 | | |
| |||
0 commit comments