Closed reece closed 1 month ago
Goals:
@pytest.mark.vcr
satisfy this?@pytest.mark.quick
satisfy this?pytest
configuration, to be displayed by pytest --markers
. I could use help deciphering the current hgvs
markers.Regarding our question today about mark exclusivity, it seems that the default is to run all tests, regardless of markers ($ pytest
).
To run only tests marked quick
: $ pytest -m quick
To run all tests, except tests marked quick
: $ pytest -m "not quick"
From: https://docs.pytest.org/en/7.1.x/example/markers.html
Current hgvs
markers:
@pytest.mark.extra:
@pytest.mark.issues:
@pytest.mark.mapping:
@pytest.mark.models:
@pytest.mark.normalization:
@pytest.mark.quick:
@pytest.mark.regression:
@pytest.mark.validation:
@pytest.mark.no_cover: disable coverage for this test.
@pytest.mark.anyio: mark the (coroutine function) test to be run asynchronously via anyio.
@pytest.mark.vcr: Mark the test as using VCR.py.
@pytest.mark.block_network: Block network access except for VCR recording.
@pytest.mark.default_cassette: Override the default cassette name.
@pytest.mark.allowed_hosts: List of regexes to match hosts to where connection must be allowed.
(Thinking... not forgotten)
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
This issue was closed by stalebot. It has been reopened to give more time for community review. See biocommons coding guidelines for stale issue and pull request policies. This resurrection is expected to be a onos.environ["GITHUB_TOKEN"]e-time event.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
See https://github.com/reece/pytest-optional-tests for background