Browse code

exit with error if no tests are found

Ben Parees authored on 2015/03/03 05:13:47
Showing 1 changed files
... ...
@@ -113,6 +113,9 @@ func main() {
113 113
 		names = append(names, test)
114 114
 	}
115 115
 
116
+	if len(names) == 0 {
117
+		log.Fatalf("No tests found!")
118
+	}
116 119
 	sort.Sort(sort.StringSlice(names))
117 120
 	for _, test := range names {
118 121
 		fmt.Printf("%s\n", test)