Quick: Tests not executing in Xcode 7 beta 6
We are seeing a very reproducible problem (not 100%, I would estimate around 50-70%) where Xcode 7 beta 6 fails to detect and execute tests. Instead, it seems that the test spec is detected, but none of the tests defined within the spec (e.g., with context and it, etc.) are actually run.
The result is that the test “runs,” and is “successful,” but it never actually executes any tests… so we are getting a false positive. Here’s a screenshot that demonstrates the problem:
It seems to temporarily reset if we clean the build directory and clean derived data… but, the problem usually returns as soon as we execute the tests more than once, or if we change the test (and require a recompile). Based on these observations, I’ll say the problem crops up every time we compile a test… and only stays away if we get it working, and don’t touch the compiled tests. Just guessing at this point, but that seems to be the behavior.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 42 (9 by maintainers)
Commits related to this issue
- QuickTests: Suffix Objective-C tests with "_ObjC" When investigating #373, I ran into an issue in which `+[XCTestCase testInvocations]` would return the **wrong set of invocations** when two test cas... — committed to modocache/personal-fork-of-Quick by modocache 9 years ago
- Update Quick and Nimble They support Xcode 7.1 with better tvOS support — committed to ReactiveCocoa/ReactiveCocoa by ikesyo 9 years ago
Hi,
Im trying to run my quick spec tests on XCode 7.3 whether individually or through test entire suite with no luck, though I’m using the latest quick version 0.9.1.
Any ideas?
XCode 8. Still facing this. In the Swift file, only 1 or 2 tests running, rest of them not considered as tests at all. any help ?
@tom-sparo Sure, So when i implemented quick framework on my project (which uses Carthage as my dependency manager), i didn’t use to copy the framework files as a build phase as specified in step 5 as shown in this link. Hence, After upgrading to XCode 7.3 for some reason it doesn’t run these tests, so i revised the steps again and it turned out that i was missing this step.