4 releases

Uses new Rust 2024

new 0.2.2 Apr 10, 2025
0.2.1 Apr 6, 2025
0.2.0 Apr 6, 2025
0.1.1 Mar 11, 2025

#586 in Web programming

Download history 6/week @ 2025-02-26 22/week @ 2025-03-05 85/week @ 2025-03-12 224/week @ 2025-04-02

331 downloads per month

MPL-2.0 license

39KB
815 lines

Catalyst

Catalyst is a lightweight and extensible API testing tool. It allows you to define and execute HTTP API tests through a declarative configuration file.

Features

  • Test Definition: Configure API test scenarios using a configuration file.
  • Variable Management: Chain tests by extracting and storing variables (e.g., cookies, JSON data).
  • Configuration Validation: Pre-run syntax and value checks for test configurations.

Installation

cargo install catalyst

Usage

Create your test file in your project .catalyst/tests.toml

Example test configuration

[config]
base_url = "http://localhost:8080"
default_headers = { "User-Agent" = "Catalyst", "Content-Type" = "application/json" }

[[tests]]
name = "Example Test"
method = "GET"
endpoint = "/api/example"
expected_status = 200

Running Tests

Execute the tests from the command line:

catalyst run

To list all tests or validate your configuration, use:

catalyst list --verbose
catalyst validate

Dependencies

~11–28MB
~326K SLoC