Skip to content

Testing

Tests are run with pyTest.

Test Structure

  • Tests marked with @pytest.mark.skipci will not run by the continuous integration tests

Setup

Pytest can be installed using one of the following options.

Install along with all development requirements (recommended):

pip install -r dev-requirements.txt

Install using PIP:

pip install pytest

Install using Conda:

conda install pytest

Running Tests

All tests

pytest

Tests in a specific file

pytest tests/test_basic.py

Tests with a specific decorator

pytest -m favorites

Performance Benchmarking

For results from Sprint 4 runtime benchmarking across two hardware configurations, including findings on CTRAMP scaling, transit assignment timing, and num_processors tuning:

TM2 Runtime Performance — Findings and Uncertainty

Continuous Integration Tests

pytest -v -m "not skipci"