Show HN: Pytest-fastprom – Turn your SLOs into pytest assertions
Category: devtools
Tags: testing, prometheus, fastapi
Score: 6.5/10 (Innovation: 6, Technical: 6, Documentation: 8, Utility: 6)
pytest-fastprom is a Python library that integrates Prometheus metrics into pytest, allowing developers to assert SLOs like latency percentiles and error rates directly in tests. It offers a unique approach to validation by using real histogram data rather than synthetic timing, making it particularly useful for maintaining reliability in FastAPI services.
Target audience: backend devs
Repository: https://github.com/Lujeni/pytest-fastprom · Python · 31 stars
View on Hacker News