Today I opened my previous project and just ran all unit tests. I was so proud that they working with new XCode, even with some warnings.



But waiiiit….they all are passed.

I just wrote

and it passed too.

I found a long conversation in Github, as I know guys from Quick fixed same bug, but Specta seems still broken. I recommend you do not trust to its results. problems that I’ve found:

  • run single test file – always pass
  • you can’t run one test item – it doesn’t work
  • f prefix doesn’t work too!
  • if the test failed it disappears from Test Results tab

Related GitHub issues:

Hard to say, but I used to switch back to XCTestCase. You can check some examples here:

Oksana Kovalchuk

Passionate IOS Developer

Related Posts

Unit Testing

Better Unit testing with negative scenarios.

Today I was surprised, that a lot of devs miss negative test cases Let’s take a look at example of testing simple class: [crayon-5b4d850a34b0e944319314/]   [crayon-5b4d850a34b12644741894/]   Nothing special, yeah? Let’s try to make a Read more...