-
-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempted to report a test failure to XCTest while no test case was running #1101
Comments
What's the rest of the error? The message between the "Attempted to report a test failure to XCTest while no test case was running. The failure was:" and "It occurred at: [...]" lines. That'll help with determining what the actual issue is. |
Yes, you are right that's how I live now, but it's very difficult compared to the previous behavior. |
I uploaded a test project with the issue, please take a look. |
I haven't looked at @Bogdan-Belogurov's example project, but I just got this unexpected behavior as well. Interestingly, I am also using Tuist. |
This is caused by Nimble's Which appears to be caused by Tuist improperly handling Nimble's Package.swift (specifically, it looks like they're not including the NimbleObjectiveC stuff specified in our Package.swift). Until Tuist fixes this, I'd suggest following Tuist's documentation for using the native SPM integration. I filed an issue with Tuist to hopefully get it resolved at some point. |
Alternatively what helped me was to make Nimble and its dependencies dynamic:
|
What did you do?
Upgraded the Nimble to
13.0.0
from9.2.0
and Quick to7.3.0
from4.0.0
to useAsyncSpec
What did you expect to happen?
AsyncSpec
should notify about errors like regularQuickSpec
.What actually happened instead?
When I moved some tests to
AsyncSpec
.and received:
Attempted to report a test failure to XCTest while no test case was running.
error.Maybe you know how I can avoid this bug?
Environment
List the software versions you're using:
Please also mention which package manager you used and its version. Delete the
other package managers in this list:
Project that demonstrates the issue
QuickProject.zip
To run the project:
QuickProjectKitTests
The text was updated successfully, but these errors were encountered: