Atlas › Test

WriteSummaryRequiresJunitGlob

Exact test identity: go.temporal.io/server/tools/testrunner/TestRunnerSanitizeAndParseArgs/WriteSummaryRequiresJunitGlob

Package
go.temporal.io/server/tools/testrunner
Suite / test hierarchy
TestRunnerSanitizeAndParseArgs/WriteSummaryRequiresJunitGlob
Test
WriteSummaryRequiresJunitGlob
Introduced at
testrunner.go ×1 Frontier kind: Joint frontier
Covered ranges
5
Covered lines
14
Covered files
1

Covered source

Expand a file to inspect source; the > gutter marks covered lines.

go.temporal.io/server/tools/testrunner/testrunner.go 14 covered LOC · 5 ranges

Open complete file

81 }
82
83 > func newRunner() *runner { testrunner.go
84 > return &runner{
85 > attempts: make([]*attempt, 0),
86 > maxAttempts: 1,
87 > }
88 > }
89
90 // nolint:revive,cognitive-complexity
91 > func (r *runner) sanitizeAndParseArgs(command string, args []string) ([]string, error) { testrunner.go
92 > var sanitizedArgs []string
93 > for _, arg := range args {
94 if strings.HasPrefix(arg, maxAttemptsFlag) {
95 var err error
153 }
154
155 > switch command { testrunner.go
156 case testCommand:
157 if r.coverProfilePath == "" {
171 return nil, fmt.Errorf("missing required argument %q", crashReportNameFlag)
172 }
173 > case summaryCommand: testrunner.go
174 > if r.junitGlob == "" {
175 > return nil, fmt.Errorf("missing required argument %q", junitGlobFlag) testrunner.go
176 > }
177 if r.summaryOutputDir == "" {
178 return nil, fmt.Errorf("missing required argument %q", summaryOutputDirFlag)