Skip to content

Conversation

cmcgee1024
Copy link
Member

@cmcgee1024 cmcgee1024 commented Apr 5, 2025

Also, this is a good opportunity to refactor all of the shared mutable state into
a context that can be mocked by the tests.

Provide more complete context for mocking, including current working directory,
and shell.

Clean up any temporary files that are used in the process of testing or in production.

Completely isolate the tests from the network except for the ones that explicitly
test it, such as the HTTPClientTests.

Use new Swift Testing features, such as test scoping traits and parameterized tests
to reduce level of nested blocks within the tests, and also improve parallel test
execution.

@cmcgee1024 cmcgee1024 marked this pull request as ready for review April 6, 2025 11:24
@cmcgee1024 cmcgee1024 changed the title DRAFT: Refactor global mutable state into a context migrate to swift … Migrate swiftly to swift testing Apr 6, 2025
@cmcgee1024
Copy link
Member Author

@swift-ci test macOS

@cmcgee1024 cmcgee1024 merged commit 8f0bf20 into swiftlang:main Apr 7, 2025
22 checks passed
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