Versions in this module Expand all Collapse all v0 v0.4.0 Oct 25, 2019 Changes in this version + func RunUnitTestsCommand(configFile string, testFiles []string, verbose bool) int + type Reporter struct + func NewReporter(verbose bool) *Reporter + func (r *Reporter) Failed() bool + func (r *Reporter) RecordSuiteError(suiteID string, err error) + func (r *Reporter) RecordTestError(suiteID string, testID int, err error) + func (r *Reporter) RecordTestFailure(suiteID string, testID, entryID int, expectedLog, actualLog TestLog) + func (r *Reporter) RecordTestSuccess(suiteID string, testID, entryID int, expectedLog, actualLog TestLog) + func (r *Reporter) Summary() string + type Result struct + func (r *Result) Header() string + func (r *Result) Report(verbose bool) string + type TestCase struct + ExpectedLogs []TestLog + InputLogs []TestLog + func (c *TestCase) Run(suiteID string, testID int, pipeline *stages.Pipeline, reporter *Reporter) + type TestLog struct + Entry string + Labels model.LabelSet + Timestamp time.Time + func (l *TestLog) Equal(other *TestLog) bool + func (l *TestLog) String(indent int) string + func (l *TestLog) Time() time.Time + type TestSuite struct + func NewTestSuite(testFile string) (*TestSuite, error) + func NewTestSuites(testFiles []string) ([]*TestSuite, error) + func (s *TestSuite) Run(reporter *Reporter, pipelines map[string]*stages.Pipeline) + type TestSuiteConfig struct + Filepath string + JobName string + TestCases []TestCase + func LoadTestSuiteConfig(file string) (*TestSuiteConfig, error)