Skip to content

fix: revert the whole Swift Testing suite paths of 0.5.1 - #43

Merged
esnunes merged 1 commit into
mainfrom
revert-0.5.1
Nov 13, 2026
Merged

esnunes merged 1 commit into
mainfrom
revert-0.5.1

Conversation

@esnunes

@esnunes esnunes commented Nov 13, 2026

Copy link
Copy Markdown
Member

What changed

Reverts every code change of 0.5.1 (#42): 6579484, 629bed7, 224985c and 20da98b. The source, tests, fixtures and README are back to exactly 0.5.0; only the generated CHANGELOG.md keeps its 0.5.1 entry. Merging releases 0.5.2 with 0.5.0's behavior.

Why

0.5.1 recorded Swift Testing tests in nested suites under their whole suite path (Outer/Inner) in records.bin. Tuist's server on main stores test case runs under the innermost suite (Inner) and matches per-test evidence to them by module␟suite␟name, so with 0.5.1:

  • runs of tests in nested suites are marked as having no evidence;
  • no new per-test version is written for them, so coverage-based selection keeps using the last version 0.5.0 recorded. Once any file in that version changes, the test runs on every selection, and a nested test that fails isn't re-selected for that failure alone.

Nothing was wrongly skipped, but nested tests lost savings and fresh evidence. The full-path change only makes sense together with the server change (tuist/tuist#15645), so it's reverted until then.

What the revert gives up:

  • 0.5.1's skip list also accepted whole-path lines (Module/Outer/Inner/test()). After the revert, those lines match nothing again and the test runs. The server on main sends innermost names, so nothing changes today.
  • The tests for nested suites (ten levels deep, in an extension, in an enum namespace) are removed with the code they covered.

Validation

  • The tree matches the 0.5.0 tag except for CHANGELOG.md (git diff 0.5.0 -- . ':!CHANGELOG.md' is empty).
  • swift test --filter 'skipsTheListed|recordsOneScope|runsEveryTestWithoutASkipList' on Xcode 26.3 / Swift 6.2.4: 4 tests passed.
  • mise run lint: clean.

🤖 Generated with Claude Code

Reverts 6579484, 629bed7, 224985c and 20da98b. 0.5.1 recorded nested Swift
Testing tests under their whole suite path, which Tuist's server doesn't match
to test case runs yet, so those tests got no new coverage evidence. This
restores 0.5.0's behavior: records, unskippable.tsv and the skip list name the
innermost suite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@esnunes
esnunes requested a review from a team as a code owner November 13, 2026 20:02
@esnunes
esnunes requested review from fortmarek and removed request for a team November 13, 2026 20:02
@esnunes
esnunes merged commit b6d641d into main Nov 13, 2026
10 checks passed
@esnunes
esnunes deleted the revert-0.5.1 branch November 13, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant