Skip to content

Schemathesis

Schemathesis automatically generates property-based tests from your OpenAPI or GraphQL schema and exercises the edge cases that break your API.

Schemathesis automatically finding a server error
Finding a server error that manual testing missed

Try it now

uvx schemathesis run https://example.schemathesis.io/openapi.json

This command will immediately find real bugs in a demo API and show you exactly how to reproduce them.

Why teams choose Schemathesis

  • 🎯 Find real bugs on the first run (commonly 5–15 in production schemas).
  • ⏱️ Point it at your schema—no per-endpoint tests to maintain.
  • 🔄 Keeps pace with the spec; new endpoints are covered automatically.
  • 🔌 Exports JUnit, HAR, and integrates with pytest or CI/CD.
  • 📑 Uses your OpenAPI or GraphQL schema as the single source of truth.

Developer feedback

"The tool is amazing as it can test negative scenarios instead of me and much faster!"

— Luděk Nový, JetBrains

Documentation

Important

Upgrading from older versions? See the Migration Guide for key changes.

Need help?

  • Resources — Community articles, videos, and tutorials
  • FAQ — Frequently Asked Questions