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
32
34
iferr:=checkDependencies(projectPath); err!=nil {
@@ -51,6 +53,8 @@ var RunTestsCmd = &cobra.Command{
51
53
UseRace: useRace,
52
54
SkipTests: skipTests,
53
55
SelectedTestPackages: testPackages,
56
+
UseShuffle: useShuffle,
57
+
ShuffleSeed: shuffleSeed,
54
58
}
55
59
56
60
testResults, err:=runner.RunTests()
@@ -102,6 +106,8 @@ func init() {
102
106
RunTestsCmd.Flags().Bool("run-all-packages", false, "Run all test packages in the project. This flag overrides --test-packages and --test-packages-json")
103
107
RunTestsCmd.Flags().IntP("run-count", "c", 1, "Number of times to run the tests")
104
108
RunTestsCmd.Flags().Bool("race", false, "Enable the race detector")
109
+
RunTestsCmd.Flags().Bool("shuffle", false, "Enable test shuffling")
110
+
RunTestsCmd.Flags().String("shuffle-seed", "", "Set seed for test shuffling. Must be used with --shuffle")
105
111
RunTestsCmd.Flags().Bool("fail-fast", false, "Stop on the first test failure")
106
112
RunTestsCmd.Flags().String("output-json", "", "Path to output the test results in JSON format")
107
113
RunTestsCmd.Flags().Float64("threshold", 0.8, "Threshold for considering a test as flaky")
0 commit comments