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

tests: allow execution of selected pytests only #188

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

tiborsimko
Copy link
Member

Allows execution of selected pytests via PYTESTARG environment variable. Example:

$ PYTESTARG=tests/test_version.py ./run-tests.sh --check-pytest

Adds forgotten test for version number.

Closes reanahub/reana#755.

Copy link

codecov bot commented Nov 5, 2023

Codecov Report

Merging #188 (61bc87d) into master (5d98b43) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #188   +/-   ##
=======================================
  Coverage   28.47%   28.47%           
=======================================
  Files           5        5           
  Lines         144      144           
=======================================
  Hits           41       41           
  Misses        103      103           

Adds forgotten test for version number for consistency with other
modules. This makes global commands such as the following work:

```
$ PYTEST_ADDOPTS=tests/test_version.py reana-dev python-unit-tests -c ALL
```

Closes reanahub/reana#755.
@tiborsimko tiborsimko merged commit 61bc87d into reanahub:master Nov 10, 2023
11 checks passed
@tiborsimko tiborsimko deleted the configurable-pytest branch November 10, 2023 13:06
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.

reana-dev python-unit-tests: allow running selected tests only
2 participants