Skip to content

A fastlane plugin that merges multiple junit reports into one

License

Notifications You must be signed in to change notification settings

dyang/merge_junit_report

Repository files navigation

merge_junit_report plugin

Gem Build Status Code Climate Test Coverage

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-merge_junit_report, add it to your project by running:

fastlane add_plugin merge_junit_report

About merge_junit_report

Merge_junit_report is a Fastlane plugin that merges multiple junit reports into one single report. It's primarily designed to be used in conjunction with another Fastlane plugin fastlane-plugin-setup_fragile_tests_for_rescan so that one can rerun flaky tests on CI server and aggregate the results.

This plugin can be used in the following way:

merge_junit_report(
  input_files: ['/run0/report.xml', '/run1/report.xml', '/run2/report.xml']],
  output_file: 'output/report.xml'
)
  • input_files contains an array of junit report paths to merge from
  • output_file is the path to the final merged report. Optional.

Example

Check out the example Fastfile to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins and bundle exec fastlane test.

Run tests for this plugin

To run both the tests, and code style validation, run

rake

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.