Skip to content

Commit

Permalink
throw a little error when there are failures (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine authored Oct 10, 2023
1 parent 982679f commit 38f80e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nupm/test.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
}
}

0 comments on commit 38f80e7

Please sign in to comment.