We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f50a1 commit ec85b6fCopy full SHA for ec85b6f
1 file changed
crates/nu-utils/standard_library/tests.nu
@@ -15,7 +15,14 @@ def main [] {
15
16
for test_case in $tests {
17
log debug $"Run test ($module_name) ($test_case)"
18
- nu -c $'use ($test_file) ($test_case); ($test_case)'
+ try {
19
+ nu -c $'use ($test_file) ($test_case); ($test_case)'
20
+ } catch { error make {
21
+ msg: $"(ansi red)std::tests::test_failed(ansi reset)"
22
+ label: {
23
+ text: $"($module_name)::($test_case) failed."
24
+ }
25
+ }}
26
}
27
28
0 commit comments