biocommons / biocommons.example

Template for new biocommons packages, and source of configuration for periodic updates to derived packages
1 stars 1 forks source link

Add support for testing only certain tags #17

Closed reece closed 1 month ago

reece commented 10 months ago

See https://github.com/reece/pytest-optional-tests for background

ecalifornica commented 9 months ago

Goals:

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.
reece commented 9 months ago

(Thinking... not forgotten)

github-actions[bot] commented 8 months ago

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.

github-actions[bot] commented 8 months ago

This issue was closed because it has been stalled for 7 days with no activity.

reece commented 4 months ago

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.

github-actions[bot] commented 1 month ago

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.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 7 days with no activity.