Running Tests
Carsus’s tests are based on the AstroPy Package Template and pytest. Then, running simple tests on your machine is straightforward:
$ pytest carsus
Optional Flags
A set of flags can be appended to the above command to run different kinds of tests:
--remote-data
Run tests marked with the
@pytest.mark.remote_data
decorator. Requires an internet connection.
--refdata=/path/to/carsus-refdata
Run tests marked with the
@with_refdata
decorator. Requires the tardis-sn/carsus-refdata repository.
--cov=carsus --cov-report=xml --cov-report=html
Get code coverage results using the pytest-cov plugin.