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

moving all the test folders back in to tests #232

Open
shimwell opened this issue Apr 2, 2022 · 0 comments
Open

moving all the test folders back in to tests #232

shimwell opened this issue Apr 2, 2022 · 0 comments

Comments

@shimwell
Copy link
Member

shimwell commented Apr 2, 2022

Currently the tests are split across a few folders

tests - these always run
tests_examples - these require jupyter cadquery to be installed and don't run during the conda package testing
tests_h5m - these don't run on windows as it needs pymoab
tests_show - these require jupyter cadquery to be installed and don't run during the conda package testing

However we can use pytest.mark.skipif to selectively run these. Here is an example

import sys
@pytest.mark.skipif('pymoab' not in sys.modules,
                    reason="requires the PyMoab library")
def test_h5m_function():
....

We can therefore move all the tests back to the tests folder if these decorators are added

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

No branches or pull requests

1 participant