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
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
FROM alpine:3.22

RUN apk add --no-cache jq nushell
RUN apk add --no-cache jq curl && \
curl -Lo nu.tgz https://github.com/nushell/nushell/releases/download/0.111.0/nu-0.111.0-x86_64-unknown-linux-musl.tar.gz && \
gunzip nu.tgz && \
tar xvf nu.tar && \
mv nu-0.111.0-x86_64-unknown-linux-musl/nu /usr/bin


WORKDIR /opt/test-runner
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if [ $? -eq 0 ]; then
else
status="error"
case "$test_output" in
*"Assertion failed"*)
*"These are not equal"*)
status="fail"
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion tests/all-fail/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "fail",
"message": "Error: x Assertion failed.\n tests.nu:3:14]\n 2 | use assert\n 3 | assert equal (hello) \"Hello, World!\"\n : ^^^^^^^^^^^|^^^^^^^^^^^\n : `-| These are not equal.\n : | Left : '\"Goodbye, Mars!\"'\n : | Right : '\"Hello, World!\"'\n `----"
"message": "Error: nu::shell::error\n\n x These are not equal.\n tests.nu:3:14]\n 2 | use assert\n 3 | assert equal (hello) \"Hello, World!\"\n : ^^^|^^^ ^^^^^^^|^^^^^^^\n : | `-- right: \"Hello, World!\"\n : `-- left: \"Goodbye, Mars!\"\n `----"
}
2 changes: 1 addition & 1 deletion tests/partial-fail/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "fail",
"message": "Error: x Assertion failed.\n tests.nu:4:14]\n 3 | assert equal (two_fer \"Alice\") \"One for Alice, one for me.\"\n 4 | assert equal (two_fer) \"One for you, one for me.\"\n : ^^^^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^^^\n : `-| These are not equal.\n : | Left : '\"One for foo, one for me.\"'\n : | Right : '\"One for you, one for me.\"'\n `----"
"message": "Error: nu::shell::error\n\n x These are not equal.\n tests.nu:4:14]\n 3 | assert equal (two_fer \"Alice\") \"One for Alice, one for me.\"\n 4 | assert equal (two_fer) \"One for you, one for me.\"\n : ^^^^|^^^^ ^^^^^^^^^^^^^|^^^^^^^^^^^^\n : | `-- right: \"One for you, one for me.\"\n : `-- left: \"One for foo, one for me.\"\n `----"
}
Loading