diff --git a/Dockerfile b/Dockerfile index 5194c27..940e625 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . . diff --git a/bin/run.sh b/bin/run.sh index 4669299..6d44599 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -40,7 +40,7 @@ if [ $? -eq 0 ]; then else status="error" case "$test_output" in - *"Assertion failed"*) + *"These are not equal"*) status="fail" ;; esac diff --git a/tests/all-fail/expected_results.json b/tests/all-fail/expected_results.json index 8c5273c..f141c01 100644 --- a/tests/all-fail/expected_results.json +++ b/tests/all-fail/expected_results.json @@ -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 `----" } diff --git a/tests/partial-fail/expected_results.json b/tests/partial-fail/expected_results.json index 94ff6ea..812a185 100644 --- a/tests/partial-fail/expected_results.json +++ b/tests/partial-fail/expected_results.json @@ -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 `----" }