Exclude tests from xctool

Can a specific unit test or test suite be excluded from xctool?

I noticed that it xctoolallows you to specify specific tests to run with the flag -only. I would like to do the opposite.

The reason is that some tests require components that are not available in the console test environment.

If there is no flag for this (I could not find it in the documentation), what would be the best alternative?

+4
source share
2 answers

I solved this by creating a new schema ( RMStoreExcludeKeychingTests) that included the same goals from the original schema and excluded violation tests (shown below in Xcode 5).

enter image description here

, xctool . , , - .

- CI Travis xctool .

+1

omit.

:

-omit SPEC                 SPEC is TARGET[:Class/case[,Class2/case2]]; use * when specifying class or case prefix.
+1

All Articles