Skip to content

Commit 68159da

Browse files
committed
If there are no stats collected, exit immediately
1 parent 5848f30 commit 68159da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mutmut/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def run_stats_collection(runner, tests=None):
937937

938938
if not mutmut.tests_by_mangled_function_name:
939939
print('failed to collect stats, no active tests found')
940-
return
940+
exit(1)
941941

942942
save_stats()
943943

0 commit comments

Comments
 (0)