Skip to content

Commit

Permalink
v2.7.6 (#132)
Browse files Browse the repository at this point in the history
Minor updates
* Outputting stdout when a test fails
  • Loading branch information
bfren authored Nov 24, 2024
1 parent f279fec commit 9684e86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.5
2.7.6
6 changes: 5 additions & 1 deletion overlay/etc/nu/scripts/bf/test.nu
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use dump.nu
use fs.nu
use write.nu

Expand Down Expand Up @@ -72,7 +73,10 @@ def execute []: list<string> -> any {

# output each failure and error message
$failures | each {|x|
$"(char newline)(ansi rb)FAILED(ansi reset) ($x.test)(char newline)($x.stderr)" | print
$"(char newline)(ansi rb)FAILED(ansi reset) ($x.test)" | print
$"(char newline)#== stderr ==#(char newline)($x.stderr)" | print
$"(char newline)#== stdout ==#(char newline)($x.stdout)" | print
char newline | print
}
error make --unspanned {msg: $"($failures | length) of ($results | length) tests failed."}
}

0 comments on commit 9684e86

Please sign in to comment.