Commit d7d16bf
committed
Make a skipped test impossible to write
`MEOS.NET.Tests/BannedSymbols.txt` names every construct MSTest offers for
stopping a test from asserting — the `[Ignore]` attribute and the three
`Assert.Inconclusive` overloads — and `RS0030` is an error in the test project,
so each one fails the build rather than reaching a reviewer, a log or a count. A
skipped test asserts nothing and reads as a pass in the conclusion, which is why
the construct is refused at the compiler rather than tallied afterwards.
Deleting a test is then the only remaining way to stop running it, and that
leaves no skip behind. What moves is the total, so the workflow reads the run
through `MobilityDB/MEOS-API/.github/actions/check-test-outcome` against a floor
of 67: the same rules every other binding in the ecosystem is held to, from the
one runnable definition, so the CI answer and the answer a developer gets by
hand cannot differ. The run the floor is taken from collects the whole suite —
the snapshot step above it narrows with `--filter` deliberately and no count is
read from that one.
Four refuters, each measured. `[Ignore("refuter")]` on a test takes
`error RS0030: The symbol 'IgnoreAttribute' is banned in this project`, and
`Assert.Inconclusive("refuter")` in a body takes the same error naming
`Assert.Inconclusive(string?)`; both read `Build FAILED`. Against the suite's own
log the guard reads `total=67 skipped=0 floor=67` and passes, while a floor of 68
is refused as a shrinking suite and a log whose summary carries `Skipped: 1` is
refused as a skip. Without all four the pair would be configuration rather than
enforcement.
The suite passes 67 of 67 with none skipped, and the build takes 0 warnings.1 parent 300e7e1 commit d7d16bf
3 files changed
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | | - | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
61 | 75 | | |
62 | 76 | | |
63 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
17 | 32 | | |
18 | 33 | | |
19 | 34 | | |
| |||
0 commit comments