github schemathesis/schemathesis v4.0.0-alpha.4
Release 4.0.0-alpha.4

pre-release20 hours ago

🚀 Added

  • --report unified reporting system with multiple format support.
  • --report-dir for centralized report storage.
  • Display Open API link definition & extraction errors in CLI output.

🔧 Changed

  • Rename --generation-optimize to --generation-maximize
  • Rename --generation-mode to -m/--mode
  • Rename --generation-max-examples to -n/--max-examples
  • Rename --junit-xml to --report=junit
  • Rename --cassette-* options to --report=vcr/har with format-specific paths options
  • Replace shrink in --hypothesis-phases with a separate --no-shrink option
  • Simplify help messages for filtering options.
  • Add display of selected operations count in CLI.
  • Improve state machine generation by prioritizing reliable API entry points over random operations.
  • Make operation filtering independent of the API base path for more predictable behavior.
  • Improve error message for malformed JSON responses.
  • Return UNRESOLVABLE sentinel instead of an empty string when Open API runtime expressions can't be evaluated (e.g., when $response.body#/id is not found)
  • BREAKING: The validate_response method in state machines now accepts the same keyword arguments as call.
    If you've overridden this method, update its signature to include **kwargs.

🐛 Fixed

  • Handling of multiple API links pointing to the same operation with different parameters.
  • CLI: Make exact method filters case-insensitive.
  • Internal error in the coverage phase when a parameter mixes keywords for different types.
  • Skip irrelevant checks for "Unspecified HTTP method" coverage scenarios.
  • Handle verify=False properly when specified via get_call_kwargs on a state machine. #2713
  • Preserve test data when unit tests are interrupted via CTRL-C.

🔥 Removed

  • --cassette-format (replaced by --report).

Don't miss a new schemathesis release

NewReleases is sending notifications on new releases.