Skip to content

Instantly share code, notes, and snippets.

@up1
Last active March 22, 2026 04:14
Show Gist options
  • Select an option

  • Save up1/fd2b8c78e91f66fffceaaa8c994dd92f to your computer and use it in GitHub Desktop.

Select an option

Save up1/fd2b8c78e91f66fffceaaa8c994dd92f to your computer and use it in GitHub Desktop.
API testing with Schemathesis
$uvx schemathesis run https://petstore.swagger.io/v2/swagger.json --checks all
Installed 41 packages in 55ms
Schemathesis v4.12.2
━━━━━━━━━━━━━━━━━━━━
✅ Loaded specification from https://petstore.swagger.io/v2/swagger.json (in
2.73s)
Base URL: https://petstore.swagger.io/v2
Specification: Open API 2.0
Operations: 20 selected / 20 total
✅ API capabilities:
Supports NULL byte in headers: ✘
❌ Examples (in 2.31s)
❌ 2 failed ⏭ 18 skipped
❌ Coverage (in 24.32s)
❌ 20 failed
❌ Fuzzing (in 50.52s)
✅ 2 passed ❌ 18 failed
🕔 Stateful
0:05:04 266 scenarios • 20 covered / 28 selected / 28 total (28 inferred)
✅ 244 passed ❌ 22 failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment