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.

 

image

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: https://github.com/oks/Alister


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-58fe666ebcbc1683045026/]   [crayon-58fe666ebcbce754045896/]   Nothing special, yeah? Let’s try to make a Read more...