Closed riastradh-probcomp closed 7 years ago
The --integration
mechanism could be used to replace the existing __ci_slow
convention.
We probably should explicitly mark --integration
with a reason, for example __ci_slow
versus __ci_dependency
, since integration tests might be slow, or might require optional dependencies, etc.
While addressing the issue of integration tests and dependencies, we should also address this pattern for skipping tests based on dependencies from tests/test_loom#L33-L37:
def loom_analyze(csv_filename):
try:
import loom
except ImportError:
pytest.skip('no loom')
return
...
def test_loom_dha__ci_slow():
loom_analyze(dha_csv)
def test_loom_satellites__ci_slow():
loom_analyze(satellites_csv)
My idea with --integration
was to mark that as the one for integration tests requiring a full suite of dependencies; we could separately have --slow
, --network
, &c., and maybe --all
to run them all.
--integration
mechanism from cgpm.