Skip to content

Commit

Permalink
Merge pull request #1844 from alixander/test-name-flag
Browse files Browse the repository at this point in the history
add test name flag to test report
  • Loading branch information
alixander authored Feb 23, 2024
2 parents 39fd268 + 277b1ac commit 5117d2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2etests/report/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ func main() {
vFlag := false
testCaseFlag := ""
testSetFlag := ""
testNameFlag := ""
cpuProfileFlag := false
memProfileFlag := false
flag.BoolVar(&deltaFlag, "delta", false, "Generate the report only for cases that changed.")
flag.StringVar(&testNameFlag, "test-name", "E2E", "Name of e2e tests. Defaults to E2E")
flag.StringVar(&testSetFlag, "test-set", "", "Only run set of tests matching this string. e.g. regressions")
flag.StringVar(&testCaseFlag, "test-case", "", "Only run tests matching this string. e.g. all_shapes")
flag.BoolVar(&cpuProfileFlag, "cpuprofile", false, "Profile test cpu usage. `go tool pprof out/cpu.prof`")
Expand All @@ -52,7 +54,7 @@ func main() {
if vFlag {
vString = "-v"
}
testMatchString := fmt.Sprintf("-run=TestE2E/%s/%s", testSetFlag, testCaseFlag)
testMatchString := fmt.Sprintf("-run=Test%s/%s/%s", testNameFlag, testSetFlag, testCaseFlag)

cpuProfileStr := ""
if cpuProfileFlag {
Expand Down

0 comments on commit 5117d2b

Please sign in to comment.