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
// Check if project dependencies are correctly set up
31
33
iferr:=checkDependencies(projectPath); err!=nil {
@@ -50,6 +52,8 @@ var RunTestsCmd = &cobra.Command{
50
52
UseRace: useRace,
51
53
SkipTests: skipTests,
52
54
SelectedTestPackages: testPackages,
55
+
UseShuffle: useShuffle,
56
+
ShuffleSeed: shuffleSeed,
53
57
}
54
58
55
59
testResults, err:=runner.RunTests()
@@ -101,6 +105,8 @@ func init() {
101
105
RunTestsCmd.Flags().Bool("run-all-packages", false, "Run all test packages in the project. This flag overrides --test-packages and --test-packages-json")
102
106
RunTestsCmd.Flags().IntP("run-count", "c", 1, "Number of times to run the tests")
103
107
RunTestsCmd.Flags().Bool("race", false, "Enable the race detector")
108
+
RunTestsCmd.Flags().Bool("shuffle", false, "Enable test shuffling")
109
+
RunTestsCmd.Flags().String("shuffle-seed", "", "Set seed for test shuffling. Must be used with --shuffle")
104
110
RunTestsCmd.Flags().Bool("fail-fast", false, "Stop on the first test failure")
105
111
RunTestsCmd.Flags().String("output-json", "", "Path to output the test results in JSON format")
106
112
RunTestsCmd.Flags().StringSlice("skip-tests", nil, "Comma-separated list of test names to skip from running")
0 commit comments