Skip to content

Commit 6fa3341

Browse files
committed
Use mocha-multi reporter
1 parent 545afc3 commit 6fa3341

File tree

3 files changed

+229
-18
lines changed

3 files changed

+229
-18
lines changed

.circleci/config.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,14 @@ jobs:
363363
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
364364
command: |
365365
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
366-
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit --reporter mocha-junit-reporter --reporter-options mochaFile=tmp/junit.xml,outputs=true,toConsole=true"
366+
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit --reporter mocha-multi --reporter-options spec=-,junit=/tmp/junit.xml"
367367
368368
- store_test_results:
369-
path: "./tmp/junit.xml"
369+
path: "/tmp/junit.xml"
370+
371+
- store_artifacts:
372+
path: "/tmp/junit.xml"
373+
destination: "junit.xml"
370374

371375
- store_artifacts:
372376
path: "./debug-<< parameters.chain-id >>-<< parameters.preset >>.log"
@@ -448,7 +452,7 @@ jobs:
448452
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
449453
command: |
450454
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
451-
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit --reporter mocha-junit-reporter --reporter-options mochaFile=tmp/junit.xml,outputs=true,toConsole=true"
455+
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit --reporter mocha-multi --reporter-options spec=-,mocha-junit-reporter=tmp/junit.xml"
452456
453457
- store_test_results:
454458
path: "./tmp/junit.xml"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"hardhat": "^2.22.18",
6666
"mocha": "^11.0.1",
6767
"mocha-junit-reporter": "^2.2.1",
68+
"mocha-multi": "^1.1.7",
6869
"numbro": "^2.5.0",
6970
"pako": "^2.1.0",
7071
"prettier": "^3.4.2",

0 commit comments

Comments
 (0)