This Repository has been transfered from TitouanVanBelle/XCTestHTMLReport to this new organization. 🥳🎉 Contributions are very very welcome! 🥳🎉
Xcode-like HTML report for Unit and UI Tests
https://github.com/TitouanVanBelle/fastlane-plugin-xchtmlreport
Mint is the easiest way...
Install latest stable version
mint install XCTestHTMLReport/XCTestHTMLReport
Install latest from main
branch
mint install XCTestHTMLReport/XCTestHTMLReport@main
Install via Homebrew tap...
Install latest stable version
brew install XCTestHtmlReport/xchtmlreport/xchtmlreport
Install latest from main
branch
brew install XCTestHtmlReport/xchtmlreport/xchtmlreport --HEAD
Run your UI tests using xcodebuild
without forgetting to specify the resultBundlePath
$ xcodebuild test -workspace XCTestHTMLReport.xcworkspace -scheme SampleApp -destination 'platform=iOS Simulator,name=iPhone 7,OS=11.0' -resultBundlePath TestResults
Then use the previously downloaded xchtmlreport tool to create the HTML report. Additionally, -i
flag is also available to inline all resources, this is convenient for exporting the html file standalone. HTML file will be much heavier but much more portable.
$ xchtmlreport -r TestResults
Report successfully created at ./index.html
You can also pass multiple times the -r option.
$ xchtmlreport -r TestResults1 -r TestResults2
Report successfully created at ./index.html
This will create only one HTML Report in the path you passed with the -r option
You can generate junit reports with the -j
flag
$ xchtmlreport -r TestResults1 -j
Report successfully created at .index.html
JUnit report successfully created at TestResults1.xcresult/report.junit
Please create an issue whenever you find an issue or think a feature could be a good addition to XCTestHTMLReport. Always make sure to follow the Contributing Guidelines. Feel free to take a shot at these issues.
XCTestHTMLReport is available under the MIT license.
link |
Stars: 606 |
Last commit: 1 week ago |
Adding a minor version bump for the new year and several bug fixes to complete Xcode 13 compatibility. High-level updates include properly emitted logs, "Mixed" status support, and downsizing inlined images (using -i & -z).
Thank you to all contributors! Contributions are always welcome 😄
Take a look at our next major version bump in XCTestHTMLReport/XCTestHTMLReport:next
Full Changelog: https://github.com/XCTestHTMLReport/XCTestHTMLReport/compare/2.2.0...2.2.1
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics