_example

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This example program illustrates how to create a custom test suite based on the harness package. main.go contains the test suite glue while tests.go contains example tests.

The custom test suite adds a feature to give individual tests some data that can be overridden in the environment. When executed:

./example  -v
=== RUN   LogIt
--- PASS: LogIt (0.00s)
        tests.go:27: Got "something"
=== RUN   SkipIt
--- SKIP: SkipIt (0.00s)
        main.go:40: Missing "TEST_DATA_else" in environment.
PASS

Jump to

Keyboard shortcuts

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