Run should use the passed context to handle cancellation and deadlines properly, and should only return once the test has been fully completed (no lingering goroutines, unless they are cleaned up by the accompanying cleanup function). The test ID (part after the slash) is passed for identification
(ctx context.Context, id string, logs io.Writer)
| 21 | // necessary, and the provided logs write should be used for writing |
| 22 | // whatever may be necessary for debugging the test. |
| 23 | Run(ctx context.Context, id string, logs io.Writer) error |
| 24 | } |
| 25 | |
| 26 | // Cleanable is an optional extension to Runnable that allows for post-test |
no outgoing calls