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 TestResults.xcresult
Report successfully created at ./index.html
Multiple Result Bundle Path
$ xchtmlreport TestResults1 TestResults2
Report successfully created at ./index.html
This will create only one HTML Report in the path you passed with the -r option
Generate Junit Reports
You can generate junit reports with the -j flag
$ xchtmlreport -j TestResults1
Report successfully created at ./index.html
JUnit report successfully created at report.junit
Generate JSON Reports
You can generate json reports with the --json flag
$ xchtmlreport -json TestResults1
Report successfully created at ./index.html
JSON report successfully created at ./report.json
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.
Special Thanks
Thank you to the original author of this tool, TitouanVanBelle! 🥳🎉
What is it?
Xcode-like HTML report for Unit and UI Tests
Features
-j
flag)--json
flag)Installation
Homebrew (recommended)
Install via Homebrew
Install latest stable version
Install latest from
main
branchMint
Install via Mint
Install latest stable version
Install latest from
main
branchUsage
Run your UI tests using
xcodebuild
without forgetting to specify theresultBundlePath
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.Multiple Result Bundle Path
This will create only one HTML Report in the path you passed with the -r option
Generate Junit Reports
You can generate junit reports with the
-j
flagGenerate JSON Reports
You can generate json reports with the
--json
flagFastlane Support
https://github.com/TitouanVanBelle/fastlane-plugin-xchtmlreport
Contribution
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.
Special Thanks
Thank you to the original author of this tool, TitouanVanBelle! 🥳🎉
License
XCTestHTMLReport is available under the MIT license.