-
Notifications
You must be signed in to change notification settings - Fork 28
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
Skip webbpsf tests by default #958
Skip webbpsf tests by default #958
Conversation
romancal/conftest.py
Outdated
|
||
def pytest_addoption(parser): | ||
parser.addoption( | ||
"--webbpsf", action="store_true", default=False, help="run webbpsf tests" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, we could set default
to be true if users happen to have the WEBBPSF_PATH
environment variable set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Should the readme instructions also be updated?
Line 188 in 13c316e
Additionally, currently WebbPSF data is also required. Follow [these instructions to download the data files / point to existing files on the shared internal network](https://webbpsf.readthedocs.io/en/latest/installation.html#data-install). |
- Additionally, currently WebbPSF data is also required. Follow [these instructions to download the data files / point to existing files on the shared internal network](https://webbpsf.readthedocs.io/en/latest/installation.html#data-install).
+ Additionally, if it is desired to run tests against WebbPSF data, use the `pytest --webbpsf` flag or the `-webbpsf` tox factor and follow [these instructions to download the data files / point to existing files on the shared internal network](https://webbpsf.readthedocs.io/en/latest/installation.html#data-install).
This is to make it simpler for users to run their tests.
58be002
to
fa8c473
Compare
fa8c473
to
15c3000
Compare
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
Currently the
romancal
testing runs tests which require thewebbpsf
's input data by default. This is undesirable because it requires users to have to set up this data in order for the test suite to complete successfully.This PR adds the
--webbpsf
marker which enables these tests. This means that the--webbpsf
flag must be passed topytest
in order to run the tests in question. This means that by default thewebbpsf
marked tests are not run. However,this PR does add this marker to every CI job both on GitHub and Jenkins, so that the CI will always run the
webbpsf
tests. This means we will know prior to merging any changes if these tests are broken while also removing the burden of requiring outside users to not have to worry aboutwebbpsf
.Checklist
CHANGES.rst
under the corresponding subsection