All Projects → TitouanVanBelle → Xctesthtmlreport

TitouanVanBelle / Xctesthtmlreport

Licence: mit
Xcode-like HTML report for Unit and UI Tests

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Xctesthtmlreport

Quiz App
A repository reflecting the progress made on the "How to Build iOS Apps with Swift, TDD & Clean Architecture" YouTube series, by Caio & Mike.
Stars: ✭ 230 (-52.97%)
Mutual labels:  xcode, unit-testing, ui-testing, xctest
XCTestHTMLReport
Xcode-like HTML report for Unit and UI Tests
Stars: ✭ 581 (+18.81%)
Mutual labels:  unit-testing, xctest, html-report, ui-testing
Bookstore Ios
 Sample iOS App - A collection of examples and patterns for Unit Testing, UI Testing, handling Result/Optionals, writing documentation, and more. Details in README.
Stars: ✭ 147 (-69.94%)
Mutual labels:  unit-testing, ui-testing, xctest
Uitestingexample
Example code from my blog post about UI testing
Stars: ✭ 57 (-88.34%)
Mutual labels:  xcode, ui-testing, xctest
Ui Testing Cheat Sheet
How do I test this with UI Testing?
Stars: ✭ 2,039 (+316.97%)
Mutual labels:  ui-testing, xctest
Dagger2
Kotlin Dagger2 example project
Stars: ✭ 145 (-70.35%)
Mutual labels:  unit-testing, ui-testing
Emcee
Emcee is a tool that runs iOS tests in parallel using multiple simulators across many Macs
Stars: ✭ 148 (-69.73%)
Mutual labels:  xcode, xctest
Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+2089.37%)
Mutual labels:  xcode, unit-testing
Sbtuitesttunnel
Enable network mocks and more in UI Tests
Stars: ✭ 215 (-56.03%)
Mutual labels:  xcode, xctest
ios-ui-automation-overview
An overview of popular iOS UI testing solutions.
Stars: ✭ 23 (-95.3%)
Mutual labels:  xctest, ui-testing
Tablier
A micro-framework for Table Driven Tests.
Stars: ✭ 33 (-93.25%)
Mutual labels:  unit-testing, xctest
Xcov
Nice code coverage reporting without hassle
Stars: ✭ 467 (-4.5%)
Mutual labels:  html-report, xcode
Moderncppci
This is an example of doing a Modern C++ project with CI
Stars: ✭ 109 (-77.71%)
Mutual labels:  xcode, unit-testing
fastlane-plugin-xchtmlreport
fastlane plugin for XCTestHTMLReport
Stars: ✭ 17 (-96.52%)
Mutual labels:  xctest, html-report
Mockingbird
A convenient mocking framework for Swift
Stars: ✭ 302 (-38.24%)
Mutual labels:  unit-testing, xctest
Downloader For Apple Developers
Download Xcode, WWDC Videos, and other developer tools up to 16 times faster.
Stars: ✭ 456 (-6.75%)
Mutual labels:  xcode
Controlroom
A macOS app to control the Xcode Simulator.
Stars: ✭ 4,617 (+844.17%)
Mutual labels:  xcode
Electron Nuxt
⚡ An Electron & Nuxt.js / Vue.js quick start boilerplate with vue-cli scaffolding, electron-builder, unit/e2e testing, vue-devtools
Stars: ✭ 452 (-7.57%)
Mutual labels:  unit-testing
Sourceful
A syntax highlighting source editor for iOS and macOS using UITextView and NSTextView.
Stars: ✭ 449 (-8.18%)
Mutual labels:  xcode
Swiftai
SwiftAI, write Swift code smart. SwiftAI can generate Model class from JSON now. Codable and HandyJSON is supported. More features will be add.
Stars: ✭ 470 (-3.89%)
Mutual labels:  xcode

⚠️ **Looking to transfer repository ownership. Drop me a line is interested ⚠️

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
  • Navigate through the report with the keyboard's arrow keys
  • Filter out successful or failed tests
  • Displays information about the target device
  • Displays activity logs
  • Junit report

Fastlane Support

https://github.com/TitouanVanBelle/fastlane-plugin-xchtmlreport

Installation

Homebrew

Install via Homebrew.

# Install latest stable version
$ brew install https://raw.githubusercontent.com/TitouanVanBelle/XCTestHTMLReport/develop/xchtmlreport.rb

# Install latest master branch
$ brew install --HEAD https://raw.githubusercontent.com/TitouanVanBelle/XCTestHTMLReport/develop/xchtmlreport.rb

Alternate

Simply execute the following command to download the latest version of XCTestHTMLReport

$ bash <(curl -s https://raw.githubusercontent.com/TitouanVanBelle/XCTestHTMLReport/master/install.sh)

You can also specify a branch or tag

$ bash <(curl -s https://raw.githubusercontent.com/TitouanVanBelle/XCTestHTMLReport/master/install.sh) '1.0.0'

Usage

Run your UI tests using xcodebuild without forgetting to specify the resultBundlePath

$ xcodebuild test -workspace XCTestHTMLReport.xcworkspace -scheme XCTestHTMLReportSampleApp -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

Multiple Result Bundle Path

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

Generate Junit Reports

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

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.

License

XCTestHTMLReport is available under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].