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
@@ -39,7 +40,7 @@ var AggregateFailedCmd = &cobra.Command{
39
40
}
40
41
fmt.Printf("Filtered failed test results saved to %s\n", outputPath)
41
42
} else {
42
-
fmt.Println("No failed tests found based on the specified threshold.")
43
+
fmt.Println("No failed tests found based on the specified threshold and min pass ratio.")
43
44
}
44
45
},
45
46
}
@@ -48,6 +49,7 @@ func init() {
48
49
AggregateFailedCmd.Flags().String("results-path", "testresult/", "Path to the folder containing JSON test result files")
49
50
AggregateFailedCmd.Flags().String("output-json", "failed_tests.json", "Path to output the filtered failed test results in JSON format")
50
51
AggregateFailedCmd.Flags().Float64("threshold", 0.8, "Threshold for considering a test as failed")
52
+
AggregateFailedCmd.Flags().Float64("min-pass-ratio", 0.001, "Minimum pass ratio for considering a test as flaky. Used to distinguish between tests that are truly flaky (with inconsistent results) and those that are consistently failing.")
0 commit comments