testbrain

command module
v0.0.0-...-5f073f0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

README

testbrain: Acceptance Test Brain

Simple test runner. Runs all bash tests in the designated test folder, gathering results and outputs and summarizing it.

Currently, only one command is available:

testbrain run

Runs all tests in the test folder.

Usage:
  testbrain run [flags] [files...]

Flags:
  -n, --dry-run          Do not actually run the tests
      --exclude string   Regular expression of subset of tests to not run, applied after --include
                          (default "^$")
      --in-order         Do not randomize test order
      --include string   Regular expression of subset of tests to run (default "_test\\.sh$")
      --json             Output in JSON format
      --seed int         Random seed used to determine the order of tests (default -1)
      --timeout int      Timeout (in seconds) for each individual test (default 300)
  -v, --verbose          Output the progress of running tests

Global Flags:
      --config string   config file (default is $HOME/.test-brain.yaml)

Marking tests as skipped

Sometimes a test may be marked as skipped, which indicates it neither failed nor succeeded. It may happen, e.g., when external dependencies are not satisfied.

Any test that returns the status code 99 will be marked as skipped. It allows the test itself to run checks to determine if it should skip or not.

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