Release of v2.2.0
Breaking Changes
- Removed TrackingMiddleware - The TrackingMiddleware and RequestTracker classes introduced in v2.1.0 have been removed from the library
- Removed pytest plugin - The berapi.contrib.pytest_plugin module has been removed
What's New
- pytest-html Integration Guide - Added comprehensive documentation (docs/pytest-html-tracking.md) showing how to implement request/response tracking in pytest-html reports using
a simple custom middleware approach- Color-coded status badges (Green 2xx, Yellow 4xx, Red 5xx)
- cURL command generation for easy request reproduction
- CSS optimized layout without horizontal scrolling
- Example implementation in tests/test_pytest_html_example.py
Why This Change?
The library returns to the focused core functionality of v2.0.0 with a clean middleware system. Instead of shipping a built-in tracking solution, we now provide documentation and
examples so you can implement tracking tailored to your needs.
Core Features (Unchanged)
- Fluent assertions with chainable syntax
- Middleware system (LoggingMiddleware, BearerAuthMiddleware, ApiKeyMiddleware)
- Retry with exponential backoff and jitter
- OpenAPI/JSON Schema validation
- Structured logging with structlog
Migration from v2.1.0
If you were using TrackingMiddleware, follow the guide in docs/pytest-html-tracking.md to implement your own tracking middleware using the provided examples.