Skip to content

fix: remove ansi escape sequences from escaped xunit output #3449

fix: remove ansi escape sequences from escaped xunit output

fix: remove ansi escape sequences from escaped xunit output #3449

Re-run triggered May 30, 2024 20:37
Status Failure
Total duration 4m 37s
Artifacts

mocha.yml

on: pull_request
Prevent double run
4s
Prevent double run
Matrix: smoke
Browser Test [ChromeHeadless]
0s
Browser Test [ChromeHeadless]
Linting code and markdown
23s
Linting code and markdown
Matrix: test-node
Matrix: test-browser-saucelabs
Fit to window
Zoom out
Zoom in

Annotations

18 errors
Node.js [v18 / ubuntu-latest]: test/integration/fixtures/ansi.fixture.js#L11
expected '<testsuite name="Mocha Tests" tests="2" failures="0" errors="1" skipped="0" timestamp="Thu, 30 May 2024 20:40:54 GMT" time="0.003">\n<testcase classname="suite" name="test1" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"/>\n<testcase classname="suite" name="test2" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0.001"><failure>&#x1B;[31mnot ok&#x1B;[39m\n\n + expected - actual\n\n -false\n +true\n \nAssertionError [ERR_ASSERTION]: &#x1B;[31mnot ok&#x1B;[39m\n at Context.&#x3C;anonymous&#x3E; (test/integration/fixtures/ansi.fixture.js:11:12)\n at callFn (lib/runnable.js:366:21)\n at Runnable.run (lib/runnable.js:354:5)\n at Runner.runTest (lib/runner.js:677:10)\n at /home/runner/work/mocha/mocha/lib/runner.js:800:12\n at next (lib/runner.js:592:14)\n at /home/runner/work/mocha/mocha/lib/runner.js:602:7\n at next (lib/runner.js:485:14)\n at Immediate._onImmediate (lib/runner.js:570:5)\n at process.processImmediate (node:internal/timers:476:21)</failure></testcase>\n</testsuite>\n' not to contain '&#x1B;' <testsuite name="Mocha Tests" tests="2" failures="0" errors="1" skipped="0" timestamp="Thu, 30 May 2024 20:40:54 GMT" time="0.003"> <testcase classname="suite" name="test1" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"/> <testcase classname="suite" name="test2" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0.001"><failure>&#x1B;[31mnot ok&#x1B;[39m ^^^^^^ ^^^^^^ + expected - actual -false +true AssertionError [ERR_ASSERTION]: &#x1B;[31mnot ok&#x1B;[39m ^^^^^^ ^^^^^^ at Context.&#x3C;anonymous&#x3E; (test/integration/fixtures/ansi.fixture.js:11:12) at callFn (lib/runnable.js:366:21) at Runnable.run (lib/runnable.js:354:5) at Runner.runTest (lib/runner.js:677:10) at /home/runner/work/mocha/mocha/lib/runner.js:800:12 at next (lib/runner.js:592:14) at /home/runner/work/mocha/mocha/lib/runner.js:602:7 at next (lib/runner.js:485:14) at Immediate._onImmediate (lib/runner.js:570:5) at process.processImmediate (node:internal/timers:476:21)</failure></testcase> </testsuite>
Node.js [v18 / ubuntu-latest]
Process completed with exit code 1.
Node.js [v20 / ubuntu-latest]
The job was canceled because "ubuntu-latest_18" failed.
Node.js [v20 / ubuntu-latest]: test/integration/fixtures/ansi.fixture.js#L11
expected '<testsuite name="Mocha Tests" tests="2" failures="0" errors="1" skipped="0" timestamp="Thu, 30 May 2024 20:40:50 GMT" time="0.003">\n<testcase classname="suite" name="test1" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"/>\n<testcase classname="suite" name="test2" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0.001"><failure>&#x1B;[31mnot ok&#x1B;[39m\n\n + expected - actual\n\n -false\n +true\n \nAssertionError [ERR_ASSERTION]: &#x1B;[31mnot ok&#x1B;[39m\n at Context.&#x3C;anonymous&#x3E; (test/integration/fixtures/ansi.fixture.js:11:12)\n at callFn (lib/runnable.js:366:21)\n at Runnable.run (lib/runnable.js:354:5)\n at Runner.runTest (lib/runner.js:677:10)\n at /home/runner/work/mocha/mocha/lib/runner.js:800:12\n at next (lib/runner.js:592:14)\n at /home/runner/work/mocha/mocha/lib/runner.js:602:7\n at next (lib/runner.js:485:14)\n at Immediate._onImmediate (lib/runner.js:570:5)\n at process.processImmediate (node:internal/timers:478:21)</failure></testcase>\n</testsuite>\n' not to contain '&#x1B;' <testsuite name="Mocha Tests" tests="2" failures="0" errors="1" skipped="0" timestamp="Thu, 30 May 2024 20:40:50 GMT" time="0.003"> <testcase classname="suite" name="test1" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"/> <testcase classname="suite" name="test2" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0.001"><failure>&#x1B;[31mnot ok&#x1B;[39m ^^^^^^ ^^^^^^ + expected - actual -false +true AssertionError [ERR_ASSERTION]: &#x1B;[31mnot ok&#x1B;[39m ^^^^^^ ^^^^^^ at Context.&#x3C;anonymous&#x3E; (test/integration/fixtures/ansi.fixture.js:11:12) at callFn (lib/runnable.js:366:21) at Runnable.run (lib/runnable.js:354:5) at Runner.runTest (lib/runner.js:677:10) at /home/runner/work/mocha/mocha/lib/runner.js:800:12 at next (lib/runner.js:592:14) at /home/runner/work/mocha/mocha/lib/runner.js:602:7 at next (lib/runner.js:485:14) at Immediate._onImmediate (lib/runner.js:570:5) at process.processImmediate (node:internal/timers:478:21)</failure></testcase> </testsuite>
Node.js [v20 / ubuntu-latest]
Process completed with exit code 1.
Node.js [v18 / windows-2019]
The job was canceled because "ubuntu-latest_18" failed.
Node.js [v18 / windows-2019]
The operation was canceled.
Node.js [v20 / windows-2019]
The job was canceled because "ubuntu-latest_18" failed.
Node.js [v20 / windows-2019]
The operation was canceled.
Node.js [v14 / windows-2019]
The job was canceled because "ubuntu-latest_18" failed.
Node.js [v14 / windows-2019]
The operation was canceled.
Node.js [v16 / windows-2019]
The job was canceled because "ubuntu-latest_18" failed.
Node.js [v16 / windows-2019]
The operation was canceled.
Node.js [v14 / ubuntu-latest]
The job was canceled because "ubuntu-latest_18" failed.
Node.js [v14 / ubuntu-latest]: test/integration/fixtures/ansi.fixture.js#L11
expected '<testsuite name="Mocha Tests" tests="2" failures="0" errors="1" skipped="0" timestamp="Thu, 30 May 2024 20:41:03 GMT" time="0.003">\n<testcase classname="suite" name="test1" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"/>\n<testcase classname="suite" name="test2" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"><failure>&#x1B;[31mnot ok&#x1B;[39m\n\n + expected - actual\n\n -false\n +true\n \nAssertionError [ERR_ASSERTION]: &#x1B;[31mnot ok&#x1B;[39m\n at Context.&#x3C;anonymous&#x3E; (test/integration/fixtures/ansi.fixture.js:11:12)\n at callFn (lib/runnable.js:366:21)\n at Test.Runnable.run (lib/runnable.js:354:5)\n at Runner.runTest (lib/runner.js:677:10)\n at /home/runner/work/mocha/mocha/lib/runner.js:800:12\n at next (lib/runner.js:592:14)\n at /home/runner/work/mocha/mocha/lib/runner.js:602:7\n at next (lib/runner.js:485:14)\n at Immediate._onImmediate (lib/runner.js:570:5)\n at processImmediate (internal/timers.js:464:21)</failure></testcase>\n</testsuite>\n' not to contain '&#x1B;' <testsuite name="Mocha Tests" tests="2" failures="0" errors="1" skipped="0" timestamp="Thu, 30 May 2024 20:41:03 GMT" time="0.003"> <testcase classname="suite" name="test1" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"/> <testcase classname="suite" name="test2" file="/home/runner/work/mocha/mocha/test/integration/fixtures/ansi.fixture.js" time="0"><failure>&#x1B;[31mnot ok&#x1B;[39m ^^^^^^ ^^^^^^ + expected - actual -false +true AssertionError [ERR_ASSERTION]: &#x1B;[31mnot ok&#x1B;[39m ^^^^^^ ^^^^^^ at Context.&#x3C;anonymous&#x3E; (test/integration/fixtures/ansi.fixture.js:11:12) at callFn (lib/runnable.js:366:21) at Test.Runnable.run (lib/runnable.js:354:5) at Runner.runTest (lib/runner.js:677:10) at /home/runner/work/mocha/mocha/lib/runner.js:800:12 at next (lib/runner.js:592:14) at /home/runner/work/mocha/mocha/lib/runner.js:602:7 at next (lib/runner.js:485:14) at Immediate._onImmediate (lib/runner.js:570:5) at processImmediate (internal/timers.js:464:21)</failure></testcase> </testsuite>
Node.js [v14 / ubuntu-latest]
The operation was canceled.
Node.js [v16 / ubuntu-latest]
The job was canceled because "ubuntu-latest_18" failed.
Node.js [v16 / ubuntu-latest]
The operation was canceled.