pawntest

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: MIT

README

pawntest

A Go CLI for discovering, compiling, and running Pawn tests for SA-MP and open.mp projects. Tests run on the pure-Go pawnkit/goamx backend, so no game server is required.

See Installation for release binaries and supported platforms.

Quick start

pawntest ./tests
pawntest --list ./tests
pawntest doctor

Pass a compiler or additional include directory when needed:

pawntest ./tests --pawncc ./tools/pawncc -i include

Test source files must end in .test.pwn or .test.inc. Source and precompiled AMX tests must include <pawntest>.

Output formats

pawntest ./tests --format plain
pawntest ./tests --format json
pawntest ./tests --format tap
pawntest ./tests --format junit --output test-results.xml

Configuration

Pawntest loads the first pawntest.json, pawntest.yaml, pawntest.yml, or pawntest.toml file in the working directory.

pawncc  = "./tools/pawncc"
include = ["include"]
tests   = ["tests/..."]
format  = "plain"

See Configuration for all options.

Documentation

Directories

Path Synopsis
cmd
pawntest command
internal
cli
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL