I've followed this very good tutorial on how to configure GHUnit in Xcode 4 and integrate it with Hudson/Jenkins.
Everything seems to work fine when all test cases pass, but when a test case fails, the Hudson/Jenkins doesn't create the "test results" where you can actually check details about the test cases that failed.
Checking the console output I see this:
Test Suite 'Tests' finished.
Executed 2 of 2 tests, with 1 failures in 0.024 seconds (0 disabled).
Failed tests:
ExampleTest/testFoo
Wrote JUnit XML successfully.
Command /bin/sh failed with exit code 1
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution "Run Script" build/FirstUnitTestingProject.build/Debug-iphonesimulator/Tests.build/Script-DA6E61A913A94E9F00DE8C5B.sh
(1 failure)
make: *** [test] Error 65
Recording test results
Finished: FAILURE
The script that is being executed can be found here.
It fails in both, Jenkins and Hudson with the same exception.
Does anyone knows how to fix this?
Thanks.
