trainer icon indicating copy to clipboard operation
trainer copied to clipboard

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

Open nikolaykasyanov opened this issue 7 years ago • 1 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.

nikolaykasyanov avatar Jun 08 '17 11:06 nikolaykasyanov

Perhaps an empty array of tests should be a failure?

BrianBatchelder avatar Jun 13 '17 16:06 BrianBatchelder