-
Notifications
You must be signed in to change notification settings - Fork 7
Feature #555 pytest write to test output directory #559
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…TEST_OUTPUT is set) and preserve output files so they can be compared to previous iterations, consolidate redundant tests, use a module fixture to set up environment once per file
…rectory doesn't already exist
…ename to be .html instead of the correct path -- consider moving these functions to the base class, although they will likely be removed when plotly is removed
…ameters have the incorrect number of values
…e test output directory because plotting functions should now create the directories before writing files, only log that intermed_files directory is being removed if it exists
…el conftest functions -- presume warnings that were supressed here are no longer relevant
… tests, clean up broke yaml files (formatting of show_legend values)
…ctory does not already exist
…. change print statements to error logging
… directory is defined (METplotpy/test or METPLOTPY_TEST_OUTPUT if set) so we can more safely remove the files in the test output directory without risking wiping out user files if METPLOTPY_TEST_OUTPUT is set incorrectly
…THONPATH to find METcalcpy
…_setup_env module-scope fixture
23 tasks
bikegeek
approved these changes
Jan 28, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
Test changes
Source code changes
.close()Note: I ran the METplus diff util on 2 runs to compare the output. As expected, the rank files were flagged with differences (random seed causes different results each run). The html files were also flagged with diffs. We will want to update the METplus diff util logic to allow a user to define the skip keywords and skip extensions so we can use the utility to skip files that should be skipped by the METplotpy tests.
Pull Request Testing
Ran all pytests and ensured that they passed. Ran METplus diff util on 2 runs to verify that expected files have diffs and the rest do not have any diffs
Review code changes, especially changes to source code.
We should probably add info to the Contributor's Guide to describe how to use
$METPLOTPY_TEST_OUTPUT, but I have not done that yet.Do these changes include sufficient testing updates? [Yes]
Will this PR result in changes to the test suite? [N/A]
If yes, describe the new output and/or changes to the existing output:
Do these changes introduce new SonarQube findings? [No]
If yes, please describe:
The quality gate scan fails, but the overall number of open issues has reduced by 7 and the code coverage % increased from 59.3% to 61.3%
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s) and Development issue
Select: Milestone as the version that will include these changes
Select: Coordinated METplus-X.Y Support project for bugfix releases or METplotpy-X.Y.Z Development project for official releases