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:

  • --carsus-regression-data=/path/to/carsus-regression-data Run tests marked with the @with_regression_data decorator. Requires the tardis-sn/carsus-regression-data repository.

  • --cov=carsus --cov-report=xml --cov-report=html

    Get code coverage results using the pytest-cov plugin.