forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
19 lines (19 loc) · 735 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Package test provides utilities for running integration tests on the trace agent.
// You may use the runner to start a fake backend, a trace-agent instance with a custom
// configuration, post payloads to the agent and assert the results.
//
// To use this package, start by instantiating a runner. It needs not be initialized and can
// be used as is, for example:
//
// // this runner is ready to use:
// var runner test.Runner
//
// Next, start the fake backend before running any tests:
//
// if err := runner.Start(); err != nil {
// log.Fatal(err)
// }
//
// Then, use `runner.RunAgent`, `runner.Post`, `runner.Out` and `runner.KillAgent` to run tests.
// For a full demonstration, see the package example.
package test