buildasaurs / XcodeServerSDK

Access Xcode Server API with native Swift objects.
MIT License
398 stars 30 forks source link

Different amount of tests on different platform #42

Closed cojoj closed 9 years ago

cojoj commented 9 years ago

@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: screen shot 2015-06-25 at 13 01 50 Which was fine until I switched to OS X and run tests again which produced something different: screen shot 2015-06-25 at 13 00 03


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 😉

czechboy0 commented 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.