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

Make possible to run tests independently #96

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Conversation

daavid00
Copy link
Collaborator

@daavid00 daavid00 commented Dec 2, 2024

Addressing the independent issue inside #82 (thanks @gassmoeller for pointing this).

Now it is possible to run the tests independently. e.g.,
pytest --cov=pyopmspe11 --cov-report term-missing tests/test_1_spe11b.py

In addition, if running all tests and any of them fail, now with this PR the following tests will be executed independently of the path where the test failed, this by using dirname: pathlib.Path = pathlib.Path(__file__).parent.

For the tests which depend on any other test to be run and successful first, this is printed now.

@daavid00 daavid00 changed the title Make possible to run tests independly Make possible to run tests independently Dec 2, 2024
@daavid00 daavid00 merged commit 752ca38 into OPM:main Dec 2, 2024
1 check passed
@daavid00 daavid00 mentioned this pull request Dec 4, 2024
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.

1 participant