What problem does it solve?
Standardizes testing practices to reduce brittle tests and speed up delivery by enforcing pytest best practices, test organization, and TDD workflows for the Argus analysis engine.
Core Features & Use Cases
- TDD Workflow: Guides Red-Green-Refactor iteration and mandates writing failing tests for bug fixes before implementing patches.
- Test Organization & Naming: Recommends a clear tests/ layout, file/class/method naming conventions, and use of conftest.py for shared fixtures.
- Assertions, Markers & Coverage: Advises using plain assert, pytest.approx for floats, markers for slow/performance tests, and enforces a 63% CI coverage threshold.
- Numba & Performance Testing: Describes warmup_jit patterns, use of xfail for timing variability, and testing with both small correctness and large performance datasets.
- Use Case: Validate pivot detection by writing a focused failing test, implement the minimal fix, then run the test suite with coverage checks.
Quick Start
Use the Testing Patterns skill to create a failing pytest reproducing a pivot detection bug, implement the minimal fix following TDD, and run tests to ensure coverage meets the 63% threshold.