-
Notifications
You must be signed in to change notification settings - Fork 512
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
Test is always passing if running the individual file only. #645
Comments
+1 |
The same problem for me. However, even if I run all tests I can observe the same behaviour. Strangely though, tests work as expected the first time they are run, and things gets messed up on a subsequent run. iOS 9, XCode 7 |
+1 |
1 similar comment
+1 |
I think this is the same issue I just commented on here: #625 (comment). Update: Interestingly enough this works fine in the latest AppCode (3.3 EAP 142.5239.5). |
This is happening for all tests for me for X amount of time after I run the tests. It happens regardless of if it's the individual class or the full test cases. If I switch schemas, it works for the first time, then I get nulls on all of my tests. I have to switch from play to the 'Test' (wrench) button to make it work. Trying to right click -> run tests or run an individual test will not work until I force quit xCode. |
We are having same issue. Running tests in a single file and it always reports that 1 test has passed, but it doesn't actually executes the tests. |
+1 |
+1 |
1 similar comment
+1 |
Hi! Thanks for the issue. At this point our stance is to always run the entire test suite. There are long-standing issues with test navigator integration that are not specific to Kiwi and are also experienced by other testing frameworks that dynamically build test invocations. @modocache and I are doing spring cleaning on issues at the moment, so I'm going to close this for now. |
Is this resolved in a newer version? I started with Kiwi just a month back, having already had a huge iOS codebase written in ObjC, thus I have a mammoth task of writing a lot of test cases on existing codebase. It would have been really very very helpful if I could just run one spec file at a time and not the whole suite of tests. |
I would highly recommend not using Kiwi if you're doing your test cases from scratch. The last commit was 8 months ago and this issue hasn't been resolved, according to this open ticket from 2017: #689 |
@Lyricalpanda do you recommend one of Quick or Specta instead? From what I could read online, Quick is useful for swift based codebase and Kiwi seemed to be the more popular choice for ObjC, though I am not sure how it'll compare to Specta? Do you have a recommendation? |
If I run the entire test suite, every spec runs fine. If I run an individual file, all the specs always pass and the console shows "(null)" for each spec.
For example, this spec:
Shows this in the console:
I'm running Kiwi 2.4.0 on Xcode 7.1 Beta.
The text was updated successfully, but these errors were encountered: