Test code class goes to rT (purple) - can't delete

I was editing some test code and the class sudenly lost its test ststus, no run icon and listing in tests tab went to rT.


Any idea how I can get it going again?


Thanks in advance.

Make sure that the class is a subclass of XCTestCase, and that your test methods have names beginning with "test", that they take no arguments and return void.

Yes all that is done. It was working just fine, I made a minor edit and then it stopped 😟

That sounds like a bug. If you could file a new bug report and attach your project in the current state, or a sample project that exhibits the same problem, we'd love to take a look.


http://developer.apple.com/bugreporter/


Thanks!

If you Build for Testing to force Xcode to compile the test bundle, does that bring it back?

Thanks for the suggestion, unfortunately it doesn't work 😟

Have submitted rdr: 22166350

Thanks!

This also happend to me.

Prior to beginning the process I edited the scheme and checked the Test settings. There I saw both the purple and blue icons.

To clear it I selected the related file in my Project Navigator. I deleted the file but selected "Remove Reference" rather than "Move to Trash".

Checking the scheme again, both the purple and blue icons were gone. Finally I readded the file to the test target.

Checking the scheme, only the blue icon was there. When I re-ran the tests, no rT icon was present.

Hope this helps.

This solution worked for me.. I deleted the references to the files from the project, then re-added them and it worked.

Test code class goes to rT (purple) - can't delete
 
 
Q