Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Install Nushell Binary
uses: hustcer/setup-nu@v3
Expand Down Expand Up @@ -103,10 +103,10 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Checkout Nushell
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: nushell/nushell
ref: main
Expand Down
15 changes: 9 additions & 6 deletions nutest/display/display_terminal.nu
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@ def complete-test [theme: closure, formatter: closure]: record -> nothing {
error make { msg: $"No test results found for: ($event)" }
}
let row = $result | first
let formatted = format-result $row.result $theme

if ($row.output | is-not-empty) {
let output = $row.output | format-output $formatter
print $"($formatted) ($suite) ($test)\n($output)"
} else {
print $"($formatted) ($suite) ($test)"
if $row.result != "PASS" {
let formatted = format-result $row.result $theme

if ($row.output | is-not-empty) {
let output = $row.output | format-output $formatter
print $"($formatted) ($suite) ($test)\n($output)"
} else {
print $"($formatted) ($suite) ($test)"
}
}
}

Expand Down
Loading