Pattern to use for Test Kind

I wanted to run all XCode unit tests with name like CategoryAXXXXTest, so I went ahead to create a Run Configuration with "Test Kind" set to "Pattern" and use "CategoryA*Test" as the pattern, but it dit not work. Is there any documentation or tutorial on what kind of pattern I should use for my purpose? Thanks

1 comment
Comment actions Permalink

The format depends on the test runner. For OCUnit/XCTest it is "ClassName" or "ClassName/testMethodName" elements separated by comma. Masks are not supported, unfortunately.

If all your test classes are listed in the same file (either .h or .m), you can try this:

  1. Open File structure (Cmd+F12)
  2. Type "CategoryATest"
  3. Select the desired results and press Ctrl+Shift+R (or Ctrl+Option+Cmd+R if you are using Xcode keymap)

Please sign in to leave a comment.