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 ?

  • 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.

Add a Comment

Accepted Reply

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.

Replies

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"

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.