You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Retrieve go-test-count flag as a pointer if explicitly provided.
61
-
vargoTestCount*int
61
+
vargoTestCountFlag*int
62
62
ifcmd.Flags().Changed("go-test-count") {
63
63
v, err:=cmd.Flags().GetInt("go-test-count")
64
64
iferr!=nil {
65
65
log.Error().Err(err).Msg("Error retrieving flag go-test-count")
66
66
flushSummaryAndExit(ErrorExitCode)
67
67
}
68
-
goTestCount=&v
68
+
goTestCountFlag=&v
69
69
}
70
70
71
71
// Handle the compatibility between min/max pass ratio
@@ -109,9 +109,9 @@ var RunTestsCmd = &cobra.Command{
109
109
ProjectPath: projectPath,
110
110
Verbose: true,
111
111
RunCount: runCount,
112
-
Timeout: timeout,
112
+
GoTestTimeoutFlag: goTestTimeoutFlag,
113
113
Tags: tags,
114
-
GoTestCountFlag: goTestCount,
114
+
GoTestCountFlag: goTestCountFlag,
115
115
GoTestRaceFlag: useRace,
116
116
SkipTests: skipTests,
117
117
SelectTests: selectTests,
@@ -253,8 +253,8 @@ func init() {
253
253
)
254
254
RunTestsCmd.Flags().Bool("run-all-packages", false, "Run all test packages in the project. This flag overrides --test-packages and --test-packages-json")
255
255
RunTestsCmd.Flags().IntP("run-count", "c", 1, "Number of times to run the tests")
256
-
RunTestsCmd.Flags().Duration("timeout", 0, "Passed on to the 'go test' command as the -timeout flag")
257
256
RunTestsCmd.Flags().StringArray("tags", nil, "Passed on to the 'go test' command as the -tags flag")
257
+
RunTestsCmd.Flags().String("go-test-timeout", "", "Passed on to the 'go test' command as the -timeout flag")
258
258
RunTestsCmd.Flags().Int("go-test-count", -1, "go test -count flag value. By default -count flag is not passed to go test")
259
259
RunTestsCmd.Flags().Bool("race", false, "Enable the race detector")
260
260
RunTestsCmd.Flags().Bool("shuffle", false, "Enable test shuffling")
0 commit comments