ably / ably-asset-tracking-swift

iOS client SDKs for the Ably Asset Tracking service.
Apache License 2.0
9 stars 6 forks source link

Use Fastlane’s `trainer` to generate JUnit report #514

Closed lawrence-forooghian closed 1 year ago

lawrence-forooghian commented 1 year ago

It seems that xcpretty’s JUnit report generation doesn’t work. For example, when we give it the xcodebuild output of a test run which had lots of crashes (e.g. https://github.com/ably/ably-asset-tracking-swift/issues/513#issuecomment-1349970753), it completely ignores those tests and doesn’t include them in its results.

So I’m switching to using trainer, which we already use in ably-cocoa. It directly reads the .xcresult bundle emitted by Xcode and gives much better results (for example, in https://github.com/ably/ably-asset-tracking-swift/issues/513#issuecomment-1349970753 it correctly identifies the crashed tests as failures).

Closes #513.