Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Composite reporter that generates JUnit and HTML #1855

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fr0l
Copy link

@fr0l fr0l commented Jul 30, 2024

Proposed changes

Adds feature to generate both reports: JUnit and HTML
Useful for CI, when JUnit XML is consumed by CI, and HTML for People to view.

copilot:summary

Testing

Launching tests with composite report:

maestro \
      test \
      pathToTests \
      --format composite \
      --output "reports_dir/"

Reports will be generated in:

  • reports_dir/JUnit/report.xml
  • reports_dir/Html/report.html

Issues fixed

@bartekpacia
Copy link
Contributor

Hey @fr0l, thanks a lot for this PR. I'll try to allocate some time to review it soon. Meanwhile could you attach images/videos showing what the new report looks like? Thanks!

@fr0l
Copy link
Author

fr0l commented Jul 31, 2024

Hey @fr0l, thanks a lot for this PR. I'll try to allocate some time to review it soon. Meanwhile could you attach images/videos showing what the new report looks like? Thanks!

Hey @bartekpacia , this does not produce a new type of report. it combines two reports. produces JUnit + HTML reports for a test run.

@bartekpacia
Copy link
Contributor

I see.

Could you also update documentation in https://github.com/mobile-dev-inc/maestro-docs/?

@fr0l
Copy link
Author

fr0l commented Aug 14, 2024

Hey @bartekpacia , I've added docs changes here mobile-dev-inc/maestro-docs#70
Preview rendered document is possible here https://github.com/fr0l/maestro-docs/blob/composite_test_report/cli/test-suites-and-reports.md

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants