Skip to content

Testing

Test suite

The test suite is built with pytest and includes:

  • parser tests for widget/test-case extraction
  • HTML render tests
  • DOCX output tests
  • PDF output tests (skipped when Playwright browser is unavailable)
  • integration tests for real allure generate path (skipped if Allure is not installed)

Run tests

pytest -q

Coverage in CI

Current CI matrix runs on:

  • Ubuntu + Windows
  • Python 3.10, 3.11, 3.12

CI installs Playwright Chromium before PDF tests.

Fixture strategy

tests/fixtures/generated-report/ contains generated widget and test-case examples so parser/render tests do not require Allure CLI in every environment.