Running individual tests in XCode 13.1

I can't execute individual tests or test suits on XCode 13.1, I get this message:

Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.000) seconds

I can only execute the complete set of tests, is this a bug or am I missing something ?

Answered by axel.mr in 753568022

Forgot to answer this, sorry. The problem was that the target name had spaces, which cause some internal error so it failed to recognise the tests, I solved it by removing the spaces.

Me too! It's been happening for me with Xcode 13.2.1 and 13.3.1, and I think even with some versions of Xcode 12.

Me too!

Hmmm, weird. I use this feature a lot and haven’t noticed anything like this.

If you create a new project from one of the built-in templates, making sure to enable tests, do you see the problem there?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Forgot to answer this, sorry. The problem was that the target name had spaces, which cause some internal error so it failed to recognise the tests, I solved it by removing the spaces.

Running individual tests in XCode 13.1
 
 
Q