Skip to content

[6.4.x] Combine a parameterized test case's argument IDs into a single hashed ID#1806

Merged
suzannaratcliff merged 1 commit into
swiftlang:release/6.4.xfrom
suzannaratcliff:suzysilver/hash-arg-ids-together-6.4.x
Jul 20, 2026
Merged

[6.4.x] Combine a parameterized test case's argument IDs into a single hashed ID#1806
suzannaratcliff merged 1 commit into
swiftlang:release/6.4.xfrom
suzannaratcliff:suzysilver/hash-arg-ids-together-6.4.x

Conversation

@suzannaratcliff

@suzannaratcliff suzannaratcliff commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

- Explanation: Simplifies Test.Case.ID.argumentIDs to a single combined ID that identifies the whole combination of arguments
- Scope: Test.Case.ID.argumentIDs
- Issues: N/A
- Original PRs: #1799
- Risk: Low
- Testing: New unit test added.
- Reviewers: @stmontgomery @grynspan

rdar://182725918

… ID (swiftlang#1799)

## Combine a parameterized test case's argument IDs into a single hashed
ID

### Motivation:
`Test.Case.ID.argumentIDs` previously stored one `Argument.ID` per
argument, in order. This meant the ID grew with the number of
parameters. I want to simplify this to a single combined ID that
identifies the whole combination of arguments.

rdar://182725918

### 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.

---------

Co-authored-by: Suzy Silver <suzysilver@apple.com>
@stmontgomery stmontgomery added enhancement New feature or request tools integration 🛠️ Integration of swift-testing into tools/IDEs parameterized-testing Related to parameterized testing functionality labels Jul 20, 2026
@stmontgomery stmontgomery added this to the Swift 6.4.0 milestone Jul 20, 2026
@suzannaratcliff
suzannaratcliff merged commit 3057379 into swiftlang:release/6.4.x Jul 20, 2026
29 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request parameterized-testing Related to parameterized testing functionality tools integration 🛠️ Integration of swift-testing into tools/IDEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants