Schemathesis v4.14.0: Allure Reports & Enhanced API Testing
Key Changes
Schemathesis v4.14.0 introduces significant updates for API testing.
New Features: The highlight is Allure report integration, providing richer, interactive test reports. The pytest plugin now supports recording VCR, HAR, and JUnit XML reports via schema.config.reports, offering more flexibility in test output. A new after_validate hook fires post-checks, carrying a list of CheckResult objects. Schema generation is improved, with the examples phase now generating optional properties and one disjoint set per oneOf/anyOf branch, enhancing test coverage.
Fixes: Several issues have been addressed. This includes format: email fields generating invalid values, flatmap_* hooks raising RuntimeError in negative testing, and allow-extra-parameters = false now correctly suppressing unexpected properties in request bodies. Stateful checks via schema.as_state_machine() are now reliably triggered, and InvalidSchema exceptions display proper messages in pytest output.
Improvements: HypothesisWarning is suppressed when overriding built-in string formats, streamlining custom schema definitions.
Impact for QA Teams
This update directly benefits QA engineers by streamlining reporting workflows with Allure and expanding data capture options. Improved schema generation leads to more thorough API test coverage, while critical bug fixes enhance test reliability and accuracy, especially for complex schemas and negative testing scenarios.
