Run Tests
Run all unit tests for R and Python code.
Steps
- •
R cache/schema tests (most reliable — no pipeline outputs required):
codeRscript -e 'testthat::test_file("tests/test_cache.R")' Rscript -e 'testthat::test_file("tests/test_schema_update.R")' - •
R data loading tests (has known pre-existing failures without
results/):codeRscript -e 'testthat::test_file("tests/test_data_loading.R")' Rscript -e 'testthat::test_file("tests/test_exclusion_loading.R")' - •
Python unit tests:
codemicromamba run -n q100-smk pytest tests/unit/ -v --tb=short
Known Pre-existing Failures (not caused by recent changes)
- •
parse_benchmark_id()regex captures"5.0q"not"v5.0q"— tests expect"v"prefix - •
test_data_loading.Rreferences old column names (strat_name,strat_filter) from pre-refactor - •Any test that loads real data will fail without
results/directory (pipeline outputs not in repo)
Reporting
Report results grouped by test file. Distinguish between:
- •New failures: Likely caused by recent changes — investigate these
- •Pre-existing failures: Listed above — note them but don't treat as regressions
- •Passes: Confirm count