DataONEorg / slinky

Slinky, the DataONE Graph Store
Apache License 2.0
4 stars 4 forks source link

Set up pytest to only run unit tests by default and integration tests when asked #66

Closed amoeba closed 2 years ago

amoeba commented 2 years ago

This is something I wanted but didn't get done before. I think everyone's happiest when you don't have to run three or more services (Virtuoso, Redis, etc) just to run pytest after a fresh checkout. Turns out pytest can take command line options so we can have pytest run just unit tests by default and add a --integration option that runs tests marked as integration tests.

Add this to conftest and update the README.

After this change, any new unit tests can just be done as usual and integration tests will need to be decorated with @pytest.mark.integration.

amoeba commented 2 years ago

This is set up in conftest and documented in the readme.