Testing
Test plan for the ID Generator service — test categories, execution, and reporting.
Last updated
Was this helpful?
Was this helpful?
pip install -r requirements-test.txtcd tests
# Fast tests — API contract + filters (~2 seconds)
pytest -m "api_contract or filters" --base-url=http://localhost:8000 -v
# All tests in order
pytest --base-url=http://localhost:8000 -v
# With HTML report
pytest --base-url=http://localhost:8000 --html=report.html --self-contained-html -v
# Against a remote service
pytest --base-url=https://idgen.staging.example.com -v
# Individual categories
pytest -m api_contract --base-url=http://localhost:8000 -v
pytest -m filters --base-url=http://localhost:8000 -v
pytest -m performance --base-url=http://localhost:8000 -v
pytest -m exhaustive --base-url=http://localhost:8000 -v
pytest -m exhaustion --base-url=http://localhost:8000 -v