Catalyst
A lightweight and powerful API testing tool
Documentation | Installation | Examples
Overview
Catalyst is a lightweight and extensible HTTP API testing tool. It allows you to define and execute API tests through a declarative configuration file, without writing any code.
Features
- Declarative Testing: Configure your API test scenarios using a simple TOML file
- Variable Management: Chain your tests by extracting and storing variables (cookies, JSON data, etc.)
- Configuration Validation: Syntax and semantic checks before execution
- JSON Assertions: Partial validation of JSON responses with regex support
- Performance: Measure and validate response times
Installation
Examples
Create your test file in your project .catalyst/tests.toml
[]
= "http://localhost:8080"
= { = "Catalyst", = "application/json" }
[[]]
= "Example Test"
= "GET"
= "/api/example"
= 200
= 500 # maximum time in ms
= [
{ = "contains", = "data.status", = "success" },
{ = "regex", = "data.id", = "^[0-9a-f]{8}$" }
]
Usage
Execute the tests from the command line:
# Run all tests
# List all tests
# Validate your configuration
Documentation
For complete documentation, visit catalyst.caffeidine.com.
License
This project is licensed under the MPL-2.0.