Skip to content

Test Reports Reference

Complete reference for pytest HTML test reports.

The test suite covers the following areas:

  • Server health endpoints
  • Database connectivity
  • Version information
  • API key validation
  • JWT token verification
  • Role-based access control (Admin, Broker, Agent)
  • List agents with pagination
  • Search agents by name/email
  • Create, update, delete agents
  • Semantic search integration

Tests use pytest with the following plugins:

  • pytest-asyncio - Async test support for FastAPI
  • pytest-html - HTML report generation
  • pytest-cov - Coverage measurement

Configuration in pyproject.toml:

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]

The HTML report includes:

  • Summary Section: Pass/fail counts, duration, environment info
  • Results Table: Each test with status, duration, and category
  • Failure Details: Full tracebacks with local variables for failed tests
  • Environment Info: Python version, platform, installed plugins

Reports are regenerated on each test run and can be published to this documentation site:

Terminal window
make publish-docs

This copies the latest reports to the docs public/reports/ directory.