In Xcode, at the end of my unit tests, I get this result:
Test Suite "All Tests" completed on 2012-12-06 10:23:38 +0000
195 tests performed with 0 errors ( 0 unexpected ) in 4.314 (4.485) seconds
I would like to know how I can identify tests with expected failures.
Usually with other testing platforms, I like to simply identify incomplete unit tests as reminders of future work to be done. These tests should only be recorded as warnings, but at the same time get the final result "Success", if everything else is in order
Looking at the output of Xcode, I assume that there is a way to achieve the same. However, I am having trouble finding the right macro to mark incomplete / TODO tests. Also, it seems strange to me that normal failures are reported as:
95 tests completed with 1 failure (0 unexpected) in 2,314 (2,334) seconds
Therefore, any denial of approval of the test seems to be expected. In this case, I am even confused with the value of (0 unexpected) failures.
Can someone explain the meaning of this part of the results of the journal ?, how can it be used? How can I mark incomplete tests?
unit-testing xcode cocoa testing ocunit
Systematic frank
source share