Most basic swift-testing test fails due #434
Answered
by
mbrandonw
NoahKamara
asked this question in
Q&A
-
|
I can't seem to get tests to work. I've created this minimum example. Has anyone experienced anything similar and could point me in the right direction? import Testing
import SQLiteData
import DependenciesTestSupport
struct WorkspaceExperimentsTests {
@Test(.dependency(\.defaultDatabase, try DatabaseQueue()))
func example() {
print("HI")
}
}This fails for me with |
Beta Was this translation helpful? Give feedback.
Answered by
mbrandonw
Mar 28, 2026
Replies: 1 comment 4 replies
-
|
Hi @NoahKamara, you'll need to provide a project that reproduces the problem to say for certain, but most likely you have linked a library to your test target that you should not have. Want to share a project for someone to check out? |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
NoahKamara
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @NoahKamara, you'll need to provide a project that reproduces the problem to say for certain, but most likely you have linked a library to your test target that you should not have.
Want to share a project for someone to check out?