Skip to content

Improved result logging and JSON output #127

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

Merged
merged 5 commits into from
Feb 1, 2022

Conversation

ConorMacBride
Copy link
Member

The PR improves the reporting of test results. Python dictionaries are used to record metrics (test result, RMS, hashes, error messages, image paths etc.) for each test while it is being run. This can be exported to JSON with --mpl-generate-summary=json (and also HTML with --mpl-generate-summary=html,json). The HTML output is now generated using the dictionaries, so extra info such as RMS and hashes are also shown in the HTML output.

PS: I'm also working on a Bootstrap webpage for a more interactive HTML output, which I'll open a separate PR for if/when this is merged. It could possibly replace html, with the current html output available at simple-html.

Signed-off-by: Conor MacBride <[email protected]>
Signed-off-by: Conor MacBride <[email protected]>
Signed-off-by: Conor MacBride <[email protected]>
@lgtm-com
Copy link

lgtm-com bot commented Jan 5, 2022

This pull request introduces 1 alert when merging f45e869 into 81e120a - view on LGTM.com

new alerts:

  • 1 for Wrong number of arguments in a call

Signed-off-by: Conor MacBride <[email protected]>
@Cadair Cadair self-requested a review January 26, 2022 17:37
@Cadair Cadair merged commit 4cbcf82 into matplotlib:master Feb 1, 2022
@ConorMacBride ConorMacBride deleted the json-report branch February 28, 2023 19:18
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