reanahub / reana-commons

REANA common utilities and schemas
https://reana-commons.readthedocs.io/
MIT License
2 stars 39 forks source link

tests: allow execution of selected pytests only #419

Closed tiborsimko closed 12 months ago

tiborsimko commented 1 year ago

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

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

Closes reanahub/reana#755.

codecov[bot] commented 1 year ago

Codecov Report

Merging #419 (2af5c8a) into master (2b2b2ce) will increase coverage by 36.12%. The diff coverage is n/a.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/reanahub/reana-commons/pull/419/graphs/tree.svg?width=650&height=150&src=pr&token=O7K5KFXK3H&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub)](https://app.codecov.io/gh/reanahub/reana-commons/pull/419?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) ```diff @@ Coverage Diff @@ ## master #419 +/- ## =========================================== + Coverage 0 36.12% +36.12% =========================================== Files 0 26 +26 Lines 0 1575 +1575 =========================================== + Hits 0 569 +569 - Misses 0 1006 +1006 ``` [see 26 files with indirect coverage changes](https://app.codecov.io/gh/reanahub/reana-commons/pull/419/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub)
tiborsimko commented 12 months ago

This PR is not really necessary because PYTEST_ADDOPTS works:

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