Hook to optionally skip specific failures #1792
Labels
Component: Hooks
Extensibility and customization
Difficulty: Intermediate
Requires some experience
Priority: Medium
Planned for regular releases
Type: Feature
New functionalities or enhancements
Users sometimes encounter errors during testing that they don't wish to address for various reasons, like server issues out of their control. Current options like disabling checks lack the required granularity, and Schemathesis halts on these failures, disrupting the testing flow.
Proposed Solution
Introduce a new hook named
ignore_failure_if
to allow conditionally skipping certain test cases based on custom logic.:Benefits
Reporting
Mark intentionally skipped cases as
[IGNORED]
in the CLI output, similar to how flaky tests are marked[FLAKY]
.The text was updated successfully, but these errors were encountered: