Skip to content

Parameterized tests #108

Answered by mbrandonw
seanmrich asked this question in Q&A
Feb 11, 2025 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

This is because our Dependencies library, which is what @Shared uses under the hood, does not work with parameterized tests. We are waiting for Swift Testing to support "scoped traits" (coming Swift 6.1) to properly quarantine dependencies on a per-test basis.

There are docs on this, but they are over in the Dependencies library:

https://swiftpackageindex.com/pointfreeco/swift-dependencies/main/documentation/dependencies/testing#Parameterized-Test-cases

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@seanmrich
Comment options

Answer selected by seanmrich
Comment options

You must be logged in to vote
1 reply
@mbrandonw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants