Skip to content

Add support for testing with Schemathesis #95

@davideme

Description

@davideme

Description

Add support for property-based testing of the API using Schemathesis to improve test coverage and catch edge cases.

Background

Schemathesis is a property-based testing tool for web APIs that automatically generates test cases based on OpenAPI/Swagger specifications. It can help identify bugs, edge cases, and specification inconsistencies that traditional testing might miss.

Tasks

  • Install and configure Schemathesis
  • Set up basic property-based testing against the API specification
  • Configure Schemathesis to run as part of the CI/CD pipeline
  • Add custom checks and hypothesis strategies if needed
  • Document how to run Schemathesis tests locally
  • Review and fix any issues discovered by Schemathesis

Acceptance Criteria

  • Schemathesis tests run successfully against the API
  • Tests are integrated into the existing test suite
  • CI/CD pipeline includes Schemathesis testing
  • Documentation is updated with instructions for running property-based tests
  • Any specification inconsistencies found by Schemathesis are resolved

Resources

Additional Notes

Consider configuring Schemathesis with appropriate timeouts, rate limiting, and test data generation strategies to ensure reliable test execution.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions