Skip to content

Conversation

@iamleeg
Copy link
Contributor

@iamleeg iamleeg commented Feb 19, 2025

…960)

Describe test serialization in the article about migrating tests from
XCTest.

### Motivation:

Because XCTest runs tests in a suite serially by default, tests that
people migrate from XCTest may encounter issues if they run in parallel.

### Modifications:

Add an example of serializing a test suite to the migration guide, along
with links to the docs about test parallelization.

### Result:

The documentation on migrating tests from XCTest includes guidance on
serializing tests within a suite.

### Checklist:

- [X] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [X] If public symbols are renamed or modified, DocC references should
be updated.
Fixes a typo in the "before" example of adopting test serialization.

### Motivation:

The example of XCTest tests that need to run in series doesn't compile.

### Modifications:

Correct the code in the example.

### Result:

A documentation change that means the code snippet in the example is
correct.

### Checklist:

- [X] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [X] If public symbols are renamed or modified, DocC references should
be updated.
@grynspan grynspan added this to the Swift 6.1 milestone Feb 19, 2025
@grynspan grynspan added documentation 📚 Improvements or additions to documentation enhancement New feature or request concurrency 🔀 Swift concurrency/sendability issues labels Feb 19, 2025
@grynspan grynspan changed the title Cherry pick updates to test migration docs [6.1] Add an overview of test serialization to the XCTest migration guide Feb 19, 2025
@iamleeg iamleeg merged commit a27e557 into release/6.1 Feb 19, 2025
@iamleeg iamleeg deleted the iamleeg/122918733-cherry-pick-updates-to-test-migration-docs branch February 19, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

concurrency 🔀 Swift concurrency/sendability issues documentation 📚 Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants