Is it possible to have application test errors highlighted in the editor with Xcode 4?

落爺英雄遲暮 提交于 2019-12-11 07:44:38

问题


When I run logic tests with Xcode 4 and failures occur, the test failures are listed in the issue navigator and the lines of code where the failures occur are highlighted in the editor.

For example, with this logic test:

- (void)testExample
{
    STFail(@"Unit tests are not implemented yet in TinyWordsLogicTests");
}

The line with STFail is highlighted as an error in the editor, with the error message "Unit tests are not implemented yet in TinyWordsLogicTests" appearing to the right of the line of code.

When I create a similar test with an STFail call in my application testing target and run the application tests on my device, the output of the test shows that it failed, but no error is listed in the issue navigator and the line of code with the failure is not highlighted.

Is it possible to achieve the same level of error reporting in the IDE with application tests as is possible with logic tests?

来源:https://stackoverflow.com/questions/5624466/is-it-possible-to-have-application-test-errors-highlighted-in-the-editor-with-xc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!