fastlane-community / trainer

Convert xcodebuild plist and xcresult files to JUnit reports

Home Page:https://krausefx.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trainer succeeds even though one of the test targets of the scheme has failed

nikolaykasyanov opened this issue · comments

My scheme includes two test targets, one for logic tests and one for application tests. Xcode generates one test summaries plist for both, although when one of them fails to launch (thanks Xcode), the resulting plist contains empty list of tests for that target.

Here's an excerpt from plist:

<dict><!-- the target that has failed to launch -->
        <key>ProjectPath</key>
        <string>Whatever.xcodeproj</string>
        <key>TargetName</key>
        <string>LogicTests</string>
        <key>TestName</key>
        <string>LogicTests</string>
        <key>TestObjectClass</key>
        <string>IDESchemeActionTestableSummary</string>
        <key>Tests</key>
        <array/>
</dict>

Trainer considers this as a success.

I'm not sure how to solve this, though.

Perhaps an empty array of tests should be a failure?