Jenkins iOS works broken because "FATAL: logical operators are out of sync: the current test case was zero"

I am setting up jenkins work for my iOS project. The host target runs smoothly, and the unit test target failed for a very strange reason given by the "jenkins console exit", as shown below:

[DEBUG] Test Case '- [WhereYouAreTests testShowMainTopbar]'. Test Case '- [WhereYouAreTests testShowMainTopbar] passed (0.000 seconds). FATAL: logs not synchronized: current test case was null Build step "Xcode" marked as failed Finished: FAILURE

To fake the clear, WhereYouAre is my "target" and WhereYouAreTests is, of course, the goal of unit test. I MUST ALWAYS PASS before I ask this question. The only key here is: http://baolei.tumblr.com/ , which says:

getchh asked: Hi Bao. I tried your approach regarding ios unit-testing using xcode 4.5 and ios 6 with ruby ​​script. I reconfigured the work of the Jenkins. At first I thought: wow, this works great. When I looked at him carefully, I found a big problem. I always get the following error: FATAL: logical statements are not synchronized: the current test case was "testBarcodeUtilWithCorrectValues". This always happens with another Unit-Test. The result of this error: after an error occurs, unitet testing is no longer required. What can I do?

Does it work when running the script on the local machine (and not through Jenkins)? If not, perhaps you can try creating a completely new project with just one simple test case and use a script. If you can get a new project that works fine, you can try to comment on most of the test cases in your real project, leaving only a few tests and seeing what happens. Setting up iOS testing is very complicated, sometimes you really need to experiment a lot to make things work smoothly.

My unit test works fine in Xcode. So this clearly does not help me.

Please someone tell me the way or any tips. Thanks in advance.

BTW, my settings are configured for this: OS 10.7 Xcode 4.6 Jenkins (brew installation package) 1.5

+5
1
0

All Articles