Skip to content

This is lightweight API testing which can run multiple request parallely

Notifications You must be signed in to change notification settings

dawgdevv/apitestercli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Tester CLI

A command-line tool for testing APIs using YAML configuration files.

Features

  • YAML-based test configuration
  • Parallel test execution with concurrency control
  • Environment variable substitution
  • HTTP method support (GET, POST, PUT, DELETE)
  • Status code assertions
  • JSON response validation
  • JSONPath field access
  • Array length validation
  • Numeric comparison operators
  • Custom request headers
  • Request duration tracking
  • Color-coded test reports
  • Query parameter support
  • Authentication presets
  • Test dependencies and chaining
  • Response data extraction
  • Test grouping and tagging
  • Retry logic
  • Export reports (JSON, HTML, XML)
  • Mock server integration
  • Request/response logging
  • CI/CD integration helpers

Installation

go install github.com/dawgdevv/apitestercli@latest

Or clone and build:

git clone https://github.com/dawgdevv/apitestercli
cd apitestercli
go build

Usage

Create a tests.yaml file with your API test definitions, then run:

apitestercli run

Project Structure

Apitestercli/
├── cmd/           # CLI commands
├── internal/      # Internal packages
│   ├── assert/    # JSON assertions
│   ├── config/    # Configuration handling
│   ├── executor/  # Test execution
│   ├── loader/    # Test loading
│   └── report/    # Result reporting
└── pkg/
    └── models/    # Data models

License

MIT

About

This is lightweight API testing which can run multiple request parallely

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published