diff --git a/src/run.cpp b/src/run.cpp index b562b58..f39ce3a 100644 --- a/src/run.cpp +++ b/src/run.cpp @@ -87,6 +87,11 @@ namespace fuc2 { for(auto& test : tests) { fail_count += run(test, opts, argc > 1); + + if(opts.fail_fast && fail_count > 0) { + fmt::println("FAIL FAST! Aborting early."); + break; + } } return fail_count;