From 38f80e78997129c42b8ee8a2cb542e0b059a9e44 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:19:33 +0200 Subject: [PATCH] throw a little error when there are failures (#26) --- nupm/test.nu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nupm/test.nu b/nupm/test.nu index 8f1dba1..b797033 100644 --- a/nupm/test.nu +++ b/nupm/test.nu @@ -77,4 +77,8 @@ export def main [ print ($'Ran ($out | length) tests.' + $' ($successes | length) succeeded,' + $' ($failures | length) failed.') + + if ($failures | length) != 0 { + error make --unspanned {msg: "some tests failed"} + } }