open-contracting / cardinal-rs

Measure red flags and procurement indicators using OCDS data
https://cardinal.readthedocs.io
MIT License
9 stars 3 forks source link

Writing tests: document how to test with settings values #83

Closed yolile closed 6 months ago

yolile commented 7 months ago

From slack:

You can name a pair of test files in tests/fixtures/indicators something like R048-minimum_contracting_processes-1.expected and R048-minimum_contracting_processes-1.jsonl and it will set minimum_contracting_processes in the R0## struct. This logic is in build.rs