Commit d124467
Count tests correctly under --parallel, and drop attach/detach from CI
The no-tests-ran guard fired on every CI run while the suite was green
locally. swift test reports differently depending on --parallel and
neither format is a superset of the other: serially it prints "Executed N
tests" plus a "Test Case ... passed" line per test, in parallel it prints
neither and emits only "[n/total] Testing Suite/name" progress lines. CI
passes --parallel; local runs here did not.
So the counter saw nothing, reported 0, and the guard I added to catch a
suite that runs no tests instead blocked a suite running 418 of them. The
guard was right to be loud — it was the count feeding it that was wrong.
It now tries the serial summary, then the parallel progress denominator,
then per-case lines, and both real log formats resolve to 418.
The completion-scripts job also asserted that generated completions list
attach and detach, which were removed in the previous commit for being
commands that only ever threw.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CmKz41eeUtZesAswErwocH1 parent e484a4b commit d124467
2 files changed
Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
341 | 349 | | |
342 | 350 | | |
343 | 351 | | |
344 | 352 | | |
345 | 353 | | |
346 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
347 | 362 | | |
348 | 363 | | |
349 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
0 commit comments