api-test

command module
v0.0.0-...-93ea535 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 6 Imported by: 0

README

API Test

API-Test is a concurrent runner for API integration tests.

Concepts

An API integration test is defined by a set of scenarios. Each scenario contains either an ordered or unordered sequence of tests. A scenario can depend on the successful completion of zero or more other scenarios. This allows one scenario to prepare data or state in the API being tested necessary for later scenarios to run.

Installation

Simply run go install github.com/efritz/api-test.

Usage

The following command line flags are applicable for all IJ commands.

Name Short Flag Description
config f The path to the config file. If not supplied, api-test.yaml and api-test.yml are attempted in the current directory.
force-sequential Disable parallel execution. This will enforce that only one test is active at a time. The order that tests run are dependent only on scenario and test dependencies and may not consistent between runs.
max-parallelism Limit parallel execution of tests. Setting this to one will have the same effect as supplying the force-sequential flag.
junit j The target file to write the JUnit report file.
no-color Disable colorized output.
verbose v Print requests and responses as they occur.
env e Set an environment variable for use in request templates.

License

Copyright (c) 2019 Eric Fritz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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