{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/7"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"Tavern is a pytest plugin and command-line tool for automated testing of RESTful APIs, MQTT-based APIs, and gRPC services using a YAML-based test syntax.","skillfed_tags":["api-testing","pytest-plugin","yaml-driven"],"use_cases":["Write and maintain API contract tests in version control as YAML files that non-developers can read and modify.","Run API tests in CI/CD pipelines against staging or test servers, integrated with pytest's reporting and failure notifications.","Test MQTT brokers and gRPC services alongside REST APIs in a single test suite without switching frameworks.","Validate JSON response structure and values using jmespath and jsonschema without writing custom Python assertions.","Extend tests with Python fixtures and custom validation functions for complex scenarios while keeping simple tests declarative."],"what_it_does":"Tavern lets you write API tests in plain YAML files that pytest can discover and run alongside your other tests. Instead of writing Python code for each API call and assertion, you declare the request (URL, method, headers, body) and the expected response (status code, JSON structure) in a readable, version-controllable format. It integrates directly with pytest, so you get all of pytest's reporting, plugins, and CI/CD tooling for free.\n\nThe package supports testing REST APIs, MQTT message brokers, and gRPC services in the same test file. You can use pytest fixtures and hooks to extend tests, write custom validation functions in Python when YAML isn't expressive enough, and organize tests with pytest marks. It ships as a pytest plugin (auto-discovered on install), a standalone command-line tool (tavern-ci) for shell scripts, and a Python library for programmatic use.","worth_installing":"Yes. Tavern is actively maintained, has no known vulnerabilities, and solves a real problem\u2014making API tests readable and maintainable. The YAML syntax is genuinely easier to write and review than Python test code for straightforward cases, and the pytest integration means you don't sacrifice tooling or ecosystem. Low install friction and permissive licensing add no friction. Best for teams that value test readability and want to keep API tests in version control as documentation."},"id":"tavern","links":{"html":"https://skillfed.io/packages/tavern","md":"https://skillfed.io/packages/tavern.md","pypi":"https://pypi.org/project/tavern/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-14","license_spdx":null,"license_treatment":"permissive","name":"tavern","python_support":"supports_current","summary":"Simple testing of RESTful APIs"},"popularity":{"monthly_downloads":267069,"position":8297,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.6.1"}
