Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Xcode-like HTML report for Unit and UI Tests

License

NotificationsYou must be signed in to change notification settings

XCTestHTMLReport/XCTestHTMLReport

GitHub Workflow StatusCodecovSonar Violations (long format)

title

What is it?

Xcode-like HTML report for Unit and UI Tests

screenshot

Features

  • Supports parallel testing
  • Supports attachments:
    • .png
    • .jpeg
    • .heic
    • .txt
    • .log
    • .mp4
    • .gif
  • Navigate through the report with the keyboard's arrow keys
  • Filter out successful, failed, skipped, or mixed-result tests
  • Displays information about the target device
  • Displays activity logs
  • Junit report(-j flag)
  • Json report(--json flag)
  • Shrink bundle size by removing unattached files
  • Automatically convert heic images to browser-friendly format
  • Render as a single html file with inline attachments or as a bundle
  • Downsize image attachments

Installation

Homebrew (recommended)

Install viaHomebrew

Install latest stable version

brew install xctesthtmlreport

Install latest frommain branch

brew install xctesthtmlreport --HEAD

Mint

Install viaMint

Install latest stable version

mint install XCTestHTMLReport/XCTestHTMLReport

Install latest frommain branch

mint install XCTestHTMLReport/XCTestHTMLReport@main

Usage

Run your UI tests usingxcodebuild without forgetting to specify theresultBundlePath

$ xcodebuildtest -workspace XCTestHTMLReport.xcworkspace -scheme SampleApp -destination'platform=iOS Simulator,name=iPhone 14,OS=16.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 TestResults.xcresultReport successfully created at ./index.html

Multiple Result Bundle Path

$ xchtmlreport TestResults1 TestResults2Report 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 TestResults1Report successfully created at ./index.htmlJUnit report successfully created at report.junit

Generate JSON Reports

You can generate json reports with the--json flag

$ xchtmlreport -json TestResults1Report successfully created at ./index.htmlJSON report successfully created at ./report.json

Fastlane 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 theContributing Guidelines. Feel free to take a shot at these issues.

Special Thanks

Thank you to the original author of this tool,TitouanVanBelle! 🥳🎉

License

XCTestHTMLReport isavailable under the MIT license.

About

Xcode-like HTML report for Unit and UI Tests

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors32


[8]ページ先頭

©2009-2025 Movatter.jp