Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 16 beta 5: Fix snapshots test trait #885

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Conversation

stephencelis
Copy link
Member

It is no longer possible to @_spi(Experimental) import Testing, so we can no longer ship a custom execution test trait.

Instead of using such a trait to override a task local for the duration of a test, we can use a more general trait to store the information, and the assertion helpers can coalesce to the trait, instead.

It is no longer possible to `@_spi(Experimental) import Testing`, so we
can no longer ship a custom execution test trait.

Instead of using such a trait to override a task local for the duration
of a test, we can use a more general trait to store the information, and
the assertion helpers can coalesce to the trait, instead.
@stephencelis stephencelis requested a review from mbrandonw August 7, 2024 02:34
@stephencelis stephencelis merged commit 81bbb32 into main Aug 7, 2024
3 checks passed
@stephencelis stephencelis deleted the fix-test-trait branch August 7, 2024 19:54
JustasL added a commit to vinted/swift-snapshot-testing that referenced this pull request Dec 11, 2024
* main: (27 commits)
  Run swift-format
  Fix assertSnapshot for Swift Testing tests. (pointfreeco#916)
  Add an NB to @_implementationOnly import.
  Run swift-format
  Import only the implementation of Testing. (pointfreeco#903)
  fix missing inline snapshot testing (pointfreeco#887)
  Feature/fixed decimal separator (pointfreeco#889)
  Run swift-format
  Xcode 16 beta 5: Fix snapshots test trait (pointfreeco#885)
  Run swift-format
  Don't invoke XCTContext when running in the Testing framework. (pointfreeco#884)
  Run swift-format
  Fixed .failed record mode in inline snapshots. (pointfreeco#874)
  Point updated packages to swiftlang organization (pointfreeco#873)
  Fix recordIssue for Xcode beta 3. (pointfreeco#869)
  Run swift-format
  Beta support for Swift Testing, and other improvements. (pointfreeco#867)
  Run swift-format
  New `canGenerateNewSnapshots` to avoid automatically creating missing ones in CI (pointfreeco#768)
  Run swift-format
  ...
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.

2 participants