Zuplo
Zuplo CLI

Zuplo CLI: Test

Runs the tests under /tests against an endpoint
TerminalCode
zuplo test --help
zuplo test

Examples

Run all tests against your deployed API

TerminalCode
zuplo test --endpoint https://your-api-123abc.zuplo.app

Run only tests matching 'auth' in their name

TerminalCode
zuplo test --endpoint https://your-api-123abc.zuplo.app --filter 'auth'

Run tests matching a regex pattern

TerminalCode
zuplo test --endpoint https://your-api-123abc.zuplo.app --filter '/api\/v1/'

Run tests with environment variables

TerminalCode
MY_VAR=example zuplo test --endpoint https://your-api-123abc.zuplo.app

Options

--endpoint

The URL of the Zuplo API to test against

TerminalCode
zuplo test --endpoint <value>
Type: string

--filter

A filter to run a subset of tests (e.g., --filter 'test name' or --filter '/test-name-regex/')

TerminalCode
zuplo test --filter <value>
Type: string

Global options

The following global options are available for all commands:

Additional resources

Last modified on