Skip to content

Releases: FachrulCH/berapi

Release of v2.2.0

31 Jan 07:31

Choose a tag to compare

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.

Release of v2.1.0

13 Jan 12:09
f41c705

Choose a tag to compare

New changes:

  • middleware to support pytest-html for adding req-response log
  • so debugging can be easier

v2.0.0

12 Jan 14:22
7b87db2

Choose a tag to compare

Add bunch of new features, it might break your existing project as well

  • New package structure with src/ layout
  • New Settings class for configuration
  • Middleware system for extensibility
  • Structured logging with structlog
  • Built-in retry with exponential backoff
  • Renamed assertion methods for clarity
  • Unified data access with get() method