Skip to content

Commit 09461d2

Browse files
committed
Use mocha-multi reporter
1 parent a942613 commit 09461d2

File tree

3 files changed

+64
-4
lines changed

3 files changed

+64
-4
lines changed

.circleci/config.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,14 @@ jobs:
338338
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
339339
command: |
340340
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
341-
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"
341+
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"
342342
343343
- store_test_results:
344-
path: "./tmp/junit.xml"
344+
path: "/tmp/junit.xml"
345+
346+
- store_artifacts:
347+
path: "/tmp/junit.xml"
348+
destination: "junit.xml"
345349

346350
- store_artifacts:
347351
path: "./debug-<< parameters.chain-id >>-<< parameters.preset >>.log"
@@ -422,7 +426,7 @@ jobs:
422426
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
423427
command: |
424428
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
425-
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"
429+
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"
426430
427431
- store_test_results:
428432
path: "./tmp/junit.xml"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"hardhat": "^2.22.14",
6262
"mocha": "^10.7.3",
6363
"mocha-junit-reporter": "^2.2.1",
64+
"mocha-multi": "^1.1.7",
6465
"numbro": "^2.5.0",
6566
"pako": "^2.1.0",
6667
"prettier": "^3.3.3",

yarn.lock

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2570,6 +2570,22 @@ __metadata:
25702570
languageName: node
25712571
linkType: hard
25722572

2573+
"has-symbols@npm:^1.0.3":
2574+
version: 1.0.3
2575+
resolution: "has-symbols@npm:1.0.3"
2576+
checksum: 10/464f97a8202a7690dadd026e6d73b1ceeddd60fe6acfd06151106f050303eaa75855aaa94969df8015c11ff7c505f196114d22f7386b4a471038da5874cf5e9b
2577+
languageName: node
2578+
linkType: hard
2579+
2580+
"has-tostringtag@npm:^1.0.0":
2581+
version: 1.0.2
2582+
resolution: "has-tostringtag@npm:1.0.2"
2583+
dependencies:
2584+
has-symbols: "npm:^1.0.3"
2585+
checksum: 10/c74c5f5ceee3c8a5b8bc37719840dc3749f5b0306d818974141dda2471a1a2ca6c8e46b9d6ac222c5345df7a901c9b6f350b1e6d62763fec877e26609a401bfe
2586+
languageName: node
2587+
linkType: hard
2588+
25732589
"hash-base@npm:^3.0.0":
25742590
version: 3.1.0
25752591
resolution: "hash-base@npm:3.1.0"
@@ -2939,6 +2955,15 @@ __metadata:
29392955
languageName: node
29402956
linkType: hard
29412957

2958+
"is-string@npm:^1.0.4":
2959+
version: 1.0.7
2960+
resolution: "is-string@npm:1.0.7"
2961+
dependencies:
2962+
has-tostringtag: "npm:^1.0.0"
2963+
checksum: 10/2bc292fe927493fb6dfc3338c099c3efdc41f635727c6ebccf704aeb2a27bca7acb9ce6fd34d103db78692b10b22111a8891de26e12bfa1c5e11e263c99d1fef
2964+
languageName: node
2965+
linkType: hard
2966+
29422967
"is-unicode-supported@npm:^0.1.0":
29432968
version: 0.1.0
29442969
resolution: "is-unicode-supported@npm:0.1.0"
@@ -3162,6 +3187,13 @@ __metadata:
31623187
languageName: node
31633188
linkType: hard
31643189

3190+
"lodash.once@npm:^4.1.1":
3191+
version: 4.1.1
3192+
resolution: "lodash.once@npm:4.1.1"
3193+
checksum: 10/202f2c8c3d45e401b148a96de228e50ea6951ee5a9315ca5e15733d5a07a6b1a02d9da1e7fdf6950679e17e8ca8f7190ec33cae47beb249b0c50019d753f38f3
3194+
languageName: node
3195+
linkType: hard
3196+
31653197
"lodash.truncate@npm:^4.4.2":
31663198
version: 4.4.2
31673199
resolution: "lodash.truncate@npm:4.4.2"
@@ -3489,7 +3521,7 @@ __metadata:
34893521
languageName: node
34903522
linkType: hard
34913523

3492-
"mkdirp@npm:^1.0.3":
3524+
"mkdirp@npm:^1.0.3, mkdirp@npm:^1.0.4":
34933525
version: 1.0.4
34943526
resolution: "mkdirp@npm:1.0.4"
34953527
bin:
@@ -3531,6 +3563,21 @@ __metadata:
35313563
languageName: node
35323564
linkType: hard
35333565

3566+
"mocha-multi@npm:^1.1.7":
3567+
version: 1.1.7
3568+
resolution: "mocha-multi@npm:1.1.7"
3569+
dependencies:
3570+
debug: "npm:^4.1.1"
3571+
is-string: "npm:^1.0.4"
3572+
lodash.once: "npm:^4.1.1"
3573+
mkdirp: "npm:^1.0.4"
3574+
object-assign: "npm:^4.1.1"
3575+
peerDependencies:
3576+
mocha: ">=2.2.0 <7 || >=9"
3577+
checksum: 10/848a6ced811c4a1595b7db94a92deb5cad8b044832af9ec9a2a5ba94101272445ad5fb1bf973762f3afa4db28dc66cfe919648a2d3f1068ca6e27ee85f1f93db
3578+
languageName: node
3579+
linkType: hard
3580+
35343581
"mocha@npm:^10.0.0, mocha@npm:^10.7.3":
35353582
version: 10.7.3
35363583
resolution: "mocha@npm:10.7.3"
@@ -3748,6 +3795,13 @@ __metadata:
37483795
languageName: node
37493796
linkType: hard
37503797

3798+
"object-assign@npm:^4.1.1":
3799+
version: 4.1.1
3800+
resolution: "object-assign@npm:4.1.1"
3801+
checksum: 10/fcc6e4ea8c7fe48abfbb552578b1c53e0d194086e2e6bbbf59e0a536381a292f39943c6e9628af05b5528aa5e3318bb30d6b2e53cadaf5b8fe9e12c4b69af23f
3802+
languageName: node
3803+
linkType: hard
3804+
37513805
"obliterator@npm:^2.0.0":
37523806
version: 2.0.4
37533807
resolution: "obliterator@npm:2.0.4"
@@ -4655,6 +4709,7 @@ __metadata:
46554709
hardhat: "npm:^2.22.14"
46564710
mocha: "npm:^10.7.3"
46574711
mocha-junit-reporter: "npm:^2.2.1"
4712+
mocha-multi: "npm:^1.1.7"
46584713
numbro: "npm:^2.5.0"
46594714
pako: "npm:^2.1.0"
46604715
prettier: "npm:^3.3.3"

0 commit comments

Comments
 (0)