Skip to content

Testing

Syed Ibrahim Omer edited this page Apr 13, 2026 · 1 revision

Testing

The CLI can run its test suite directly.

Why these tests matter

The test suite is designed to validate the real tool behavior:

  • fetch real market data
  • compute real indicator columns
  • validate constraints (e.g. RSI range)
  • validate writers/readers across formats

Run tests

All tests:

indicators --test

Specific suite:

indicators --test --test-suite correctness

Suites

  • correctness: validates indicator computations are sane and within expected constraints
  • integration: end-to-end runs (fetch → compute → write)
  • formats: validates writing/reading across formats
  • batch: validates multi-ticker behavior

Notes

  • Tests use real Yahoo Finance data (not mocked). This increases realism but can introduce intermittent failures due to upstream availability.
  • If you need deterministic performance benchmarking, use cached profiling mode (see Reproducibility).

Related pages:

Clone this wiki locally