How to run a subset of OCUnit tests in Xcode

I have a set of unit tests that I use before validation in my project. However, it very often happens that only one of them detects some regression in the code. In these cases, I would like to run only this unit test when debugging the error. I did not find any way to do this in Xcode. Is it possible?

+3
source share
3 answers

Thanks for being in the right direction. I ended up using the same basic concept, but I added a graphical interface that allows you to choose what starts and also get a beautiful red / green status for each test. If anyone is interested, the code is listed at the URL below. The user interface needs to spit and polish more, but it seems to work.

http://github.com/nall/XcodeUnitTestGUI/tree/master

After I started the project above, I found this project, which is really fantastic.

http://github.com/gabriel/gh-unit

+2
source

, ( , " ", ) , .

" ", -SenTest otest, :

% /Developer/Tools/otest       
2009-08-29 22:28:39.555 otest[70089:10b] Usage: otest [-SenTest Self | All | None |
<TestCaseClassName/testMethodName>] <path of unit to be tested>

.

+3

: Xcode - "" . "", . / , , .

+1
source

Source: https://habr.com/ru/post/1716408/


All Articles