Versions in this module Expand all Collapse all v0 v0.17.0 Apr 30, 2024 v0.16.0 Nov 9, 2023 Changes in this version + const DefaultTimeoutFlag + var SuiteEmpty = errors.New("harness: no tests to run") + var SuiteFailed = errors.New("harness: test suite failed") + func CleanOutputDir(path string) (string, error) + type H struct + func (c *H) Context() context.Context + func (c *H) Error(args ...interface{}) + func (c *H) Errorf(format string, args ...interface{}) + func (c *H) Fail() + func (c *H) FailNow() + func (c *H) Failed() bool + func (c *H) Fatal(args ...interface{}) + func (c *H) Fatalf(format string, args ...interface{}) + func (c *H) GetNonExclusiveTestStarted() bool + func (c *H) Log(args ...interface{}) + func (c *H) Logf(format string, args ...interface{}) + func (c *H) Name() string + func (c *H) NonExclusiveTestStarted() + func (c *H) SetSubtests(subtests []string) + func (c *H) Skip(args ...interface{}) + func (c *H) SkipNow() + func (c *H) Skipf(format string, args ...interface{}) + func (c *H) Skipped() bool + func (c *H) Subtests() []string + func (c *H) TimedOut() bool + func (c *H) WarningOnFailure() + func (h *H) OutputDir() string + func (h *H) TempDir(prefix string) string + func (h *H) TempFile(prefix string) *os.File + func (h *H) Verbose() bool + func (t *H) Parallel() + func (t *H) Release() + func (t *H) Run(name string, f func(t *H)) bool + func (t *H) RunTimeout(name string, f func(t *H), timeout time.Duration) bool + func (t *H) RunWithExecTimeoutCheck(f func(), errMsg string) + func (t *H) StartExecTimer() + func (t *H) StopExecTimer() + type HarnessTest struct + type Options struct + BlockProfile bool + BlockProfileRate int + CpuProfile bool + ExecutionTrace bool + Match string + MemProfile bool + MemProfileRate int + OutputDir string + Parallel int + Reporters reporters.Reporters + Sharding string + Timeout time.Duration + Verbose bool + func (o *Options) FlagSet(prefix string, errorHandling flag.ErrorHandling) *flag.FlagSet + type Suite struct + func NewSuite(opts Options, tests Tests) *Suite + func (s *Suite) Run() (err error) + type Test func(*H) + type Tests map[string]*HarnessTest + func (ts *Tests) Add(name string, test Test, timeout time.Duration) + func (ts Tests) List() []string