🚀 Added
case.generation_modeand thegeneration_modehook filter for telling positive from negative test cases.classify_call_outcomehook for telling business-rule refusals from validation errors by response body. #5549schemathesis.errors.Failurefor annotating check failures in hooks andexceptblocks.- GitLab security report via
--report gitlab,--report-gitlab-pathor[reports.gitlab]. - TOML 1.1 syntax in configuration files, e.g. multiline inline tables with trailing commas.
ctx.sendfor custom checks sending extra requests, shown in reports and reproduction steps.- Coverage phase probes for server errors on a malformed
AcceptorContent-Typeheader. - Dictionary bindings for array items of query, header and cookie parameters, e.g.
"query.ids[*]".
🔧 Changed
negative_data_rejectionfailures to name the config for type conversion or ignored properties in aHint:line.--max-timefuzzing to retry operations without a 2xx response using valid requests only.- Coverage phase sending values from
[parameters]dictionary bindings in valid requests. - Fuzzing of an operation ending after 30 responses in a row with nothing new.
--max-timefuzzing to spend fewer requests on operations that show nothing new.- Warnings for operations that never accepted a valid request, below the usual thresholds.
🐛 Fixed
- Check failure and internal frames in tracebacks of errors raised by
filter_failurehooks. - Only the last pattern applied when an
--include-*-regexor--exclude-*-regexoption is repeated. - False positive
positive_data_acceptanceandnegative_data_rejectionfor non-objectmultipart/form-databodies. - Path values from earlier requests reused percent-encoded in later request bodies, e.g.
6%F0%96%B8%88. - Hooks files loaded by path failing on
@dataclasswithfrom __future__ import annotations. Missing test datawarning advising to add links that Schemathesis already infers.- Invalid positive arrays in the coverage phase for
allOfsplittingcontainsfromminContainsormaxContains. - False positive
positive_data_acceptancefor array parameters whose items contain the style delimiter. - Extension hook methods declared with
*argsrejected as taking the wrong number of arguments. - Misleading error for
--config-fileplaced after the command. - Tracebacks for config files that are directories or not valid UTF-8.
- False positive
positive_data_acceptancefor nullable fields in form bodies, sent as the textnull. Schema Errorin negative mode for objects requiring 32 or more string properties.- False positive
allow_header_conformanceonOPTIONSanswered with405, as in FastAPI apps. - Constants from installed dependencies used as application constants when packages are symlinked from a cache.
- Stateful phase re-finding its own failures on every
--max-timepass. - Automatic sign-up losing authentication after a test logs out or deletes the account.
- Internal error with
--max-timeafter a stateful pass in which no check ran. - Stateful phase ending after a fraction of its scenarios when earlier scenarios change server responses.
- False
ignored_authfailures and generated credentials sent alongside-Hcredentials for alternative security schemes. - Fewer coverage phase test cases on PyPy for schemas reusing a definition.
- False positive
positive_data_acceptancefor nullable path parameters, sent as the textnull. warnings.fail-onkinds missing fromwarnings.displayneither shown nor failing the run.- Wrong schema locations in coverage phase reports on PyPy.
--seedruns sending different requests once a previous run saved a failure. #2504generation.dictionariessubstituting values far more often than their configuredprobability.- Fuzzing ending after a few test cases for
DELETEoperations on resources the run created. - False positive
positive_data_acceptanceandnegative_data_rejectionfor non-objectapplication/x-www-form-urlencodedbodies. --generation-deterministicwith--max-timesending the same fuzzing inputs on every pass.Runtime Error: cannot unpack non-iterable generator objecton PyPy hiding data generation errors.before_generate_*hooks receiving internal wrapper objects in negative mode or withgeneration.dictionaries.- Stateful testing that kept sending requests after reporting
API stopped responding. - Worker threads that kept sending requests on PyPy after a run was interrupted or closed.
🏎️ Performance
- Up to 30% more stateful scenarios within the same
--max-time. - Up to 5% faster test runs on schemas with optional object properties.
- Up to 35x faster gRPC coverage phase for messages with
byteslength rules.