Unit testing for rules | Prometheus
Prometheus project documentation for Unit testing for rules