Closed cojoj closed 9 years ago
I saw the same thing yesterday. Just go through all the files in the test target and make sure that they are all contained in both the OS X and iOS test targets. The way XCTest works is that it pulls all contained XCTestCase
subclasses in the project and runs them. If you leave one out, it will still compile just fine, it just won't run those tests.
@esttorhe, while you were creating targets you told us that both OS X and iOS will use the same test target. Could you explain something to me? (I have no idea how it works)
Right now, when I run tests on iOS I get: Which was fine until I switched to OS X and run tests again which produced something different:
I wonder if it's normal that different targets shows us different test coverage? If you'll tell me that this is totally normal I'm fine... I just have no experience in this matter and that made me thinking 😉