Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tests): Add individual evergreen test results with XUnit #2227

Merged
merged 41 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3c2be35
XUnit results experiment
gagik Oct 18, 2024
84af035
Merge branch 'main' into gagik/report-individual-tests
gagik Oct 18, 2024
48d8a31
add empty xml
gagik Oct 18, 2024
165de46
make it valid xml
gagik Oct 18, 2024
5c26e87
Use task name
gagik Oct 18, 2024
a24cba1
double check
gagik Oct 18, 2024
883411c
remvoe env
gagik Oct 18, 2024
1084668
Use setup-env
gagik Oct 18, 2024
f77126e
export attempt
gagik Oct 18, 2024
a1146f5
try export again
gagik Oct 18, 2024
571f2e2
persist e2e_task_name
gagik Oct 18, 2024
ab21e10
manually pass task_name
gagik Oct 18, 2024
b9ff363
use some var
gagik Oct 18, 2024
8d0b5c8
does manual work
gagik Oct 18, 2024
3da9000
try more
gagik Oct 18, 2024
c084523
remove typo
gagik Oct 18, 2024
8a48dbc
Test using the generator for task names
gagik Oct 18, 2024
1dcd133
check if a different var helps?
gagik Oct 18, 2024
a81186d
use task_name again
gagik Oct 18, 2024
c299e68
fix syntax
gagik Oct 20, 2024
9d7d320
Merge branch 'main' into gagik/report-individual-tests
gagik Oct 20, 2024
cc1f232
Get evergreen to rerun
gagik Oct 20, 2024
f06c3c7
Merge branch 'gagik/report-individual-tests' of github.com:mongodb-js…
gagik Oct 20, 2024
eb6df53
remove quotations
gagik Oct 20, 2024
a5099e2
Use correct quotes
gagik Oct 20, 2024
2bfe4c8
pass without quotes
gagik Oct 21, 2024
eb33d01
Use reporter across all packages
gagik Oct 21, 2024
dbc3723
Pass task name again
gagik Oct 21, 2024
928d5c4
Remove log and use files
gagik Oct 22, 2024
5a46c46
Use file
gagik Oct 22, 2024
554f2a7
Update evergreen.yml
gagik Oct 22, 2024
8800a49
Add exception for empty.xml
gagik Oct 23, 2024
35fb5af
check if passing task names is actually needed
gagik Oct 23, 2024
65783f3
Update evergreen config
gagik Oct 23, 2024
356538b
Merge branch 'main' into gagik/report-individual-tests
gagik Oct 23, 2024
d2b490f
Merge branch 'main' into gagik/report-individual-tests
gagik Oct 23, 2024
8b8c292
Merge branch 'main' of github.com:mongodb-js/mongosh into gagik/repor…
gagik Oct 23, 2024
f06f9b4
Update to match main and readd task_name
gagik Oct 23, 2024
d9f8aa1
Use reporter
gagik Oct 23, 2024
f48bbe0
Merge branch 'main' into gagik/report-individual-tests
gagik Oct 23, 2024
09c71d2
Merge branch 'gagik/report-individual-tests' of github.com:mongodb-js…
gagik Oct 24, 2024
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
310 changes: 309 additions & 1 deletion .evergreen.yml

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ post:
visibility: signed
content_type: application/x-gzip
optional: true
- command: attach.xunit_results
params:
file: src/.logs/*.xml


# Functions are any command that can be run.
Expand Down Expand Up @@ -264,6 +267,7 @@ functions:
MONGOSH_RUN_ONLY_IN_PACKAGE: ${mongosh_run_only_in_package}
AWS_AUTH_IAM_ACCESS_KEY_ID: ${devtools_ci_aws_key}
AWS_AUTH_IAM_SECRET_ACCESS_KEY: ${devtools_ci_aws_secret}
TASK_NAME: ${task_name}
- command: s3.put
params:
aws_key: ${aws_key}
Expand Down Expand Up @@ -517,7 +521,7 @@ functions:
AWS_AUTH_IAM_ACCESS_KEY_ID: ${devtools_ci_aws_key}
AWS_AUTH_IAM_SECRET_ACCESS_KEY: ${devtools_ci_aws_secret}
DISABLE_OPENSSL_SHARED_CONFIG_FOR_BUNDLED_OPENSSL: ${disable_openssl_shared_config_for_bundled_openssl}
E2E_TASK_NAME: ${task_name}
TASK_NAME: ${task_name}

###
# PACKAGING AND UPLOADING
Expand Down Expand Up @@ -1124,6 +1128,7 @@ tasks:
mongosh_skip_node_version_check: "<% out(skipNodeVersionCheck) %>"
mongosh_test_id: "<% out(id) %>"
mongosh_run_only_in_package: "<% out(packageName) %>"
task_name: ${task_name}
<% } %>

###
Expand All @@ -1141,6 +1146,7 @@ tasks:
- func: test_vscode
vars:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
task_name: ${task_name}
- name: test_connectivity
tags: ["extra-integration-test"]
depends_on:
Expand All @@ -1154,6 +1160,7 @@ tasks:
- func: test_connectivity
vars:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
task_name: ${task_name}
- name: test_apistrict
tags: ["extra-integration-test"]
depends_on:
Expand All @@ -1169,6 +1176,7 @@ tasks:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
mongosh_server_test_version: "latest-alpha-enterprise"
mongosh_test_force_api_strict: "1"
task_name: ${task_name}
- name: compile_artifact
tags: ["compile-artifact"]
depends_on:
Expand Down Expand Up @@ -1273,6 +1281,7 @@ tasks:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
test_mongosh_executable: dist/mongosh
kerberos_jumphost_dockerfile: "Dockerfile.<% out(dockerFile) %>"
task_name: ${task_name}
<% } } %>

###
Expand Down Expand Up @@ -1406,6 +1415,7 @@ tasks:
vars:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
dockerfile: <% out(dockerfile) %>
task_name: ${task_name}
<% }; break;
// We don't have docker for platforms other than x64, so for those we just
// extract the archives locally.
Expand Down
3 changes: 2 additions & 1 deletion .evergreen/run-e2e-tests.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env bash
set -e
export NODE_JS_VERSION=${NODE_JS_VERSION}
export TASK_NAME=${TASK_NAME}

if [[ "$DISABLE_OPENSSL_SHARED_CONFIG_FOR_BUNDLED_OPENSSL" == "true" ]] && [[ ! "$E2E_TASK_NAME" =~ openssl(3|11) ]]; then
if [[ "$DISABLE_OPENSSL_SHARED_CONFIG_FOR_BUNDLED_OPENSSL" == "true" ]] && [[ ! "$TASK_NAME" =~ openssl(3|11) ]]; then
# On RHEL9 and based-distros, an additional configuration option
# `rh-allow-sha1-signatures` is present which is not recognizable to the
# OpenSSL version bundled with Node.js and hence the mongosh binary fails to
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ mongocryptd.pid
.sbom
.nvm
snapshot.blob
.logs/*
!.logs/empty.xml
3 changes: 3 additions & 0 deletions .logs/empty.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- An empty test suite which is needed as not all tasks produce XUnit results and the current Evergreen setup always expects some file to be uploaded -->
<testsuite name="empty" tests="0" failures="0" errors="0" skipped="0" timestamp="Fri, 18 Oct 2024 09:21:06 GMT" time="8.907">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't think of a better way to go about this... evergreen seems to fail the job completely when no files are found in the attach results step

</testsuite>
31 changes: 31 additions & 0 deletions configs/mocha-config-mongosh/reporter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { reporters } from 'mocha';
import type { MochaOptions, Runner } from 'mocha';
import path from 'path';

// Import the built-in reporters
const Spec = reporters.Spec;
const XUnit = reporters.XUnit;

export class MochaReporter extends reporters.Base {
constructor(runner: Runner, options: MochaOptions) {
super(runner, options);
const suiteName = process.env.TASK_NAME ?? path.basename(process.cwd());

new Spec(runner);

runner.on('suite', (suite) => {
if (suite.parent?.root) {
suite.title = `${suiteName}__${suite.title}`;
}
});

new XUnit(runner, {
reporterOptions: {
suiteName,
output: path.join(__dirname, '..', '..', '.logs', `${suiteName}.xml`),
},
});
}
}

module.exports = MochaReporter;
2 changes: 1 addition & 1 deletion packages/arg-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"unsafe-perm": true
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\" --reporter \"../../configs/mocha-config-mongosh/reporter.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/async-rewriter2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"pretest": "npm run compile",
"benchmark": "node -r ts-node/register benchmark/index.ts",
"test": "mocha --experimental-vm-modules -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha --experimental-vm-modules -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\" --reporter \"../../configs/mocha-config-mongosh/reporter.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"node": ">=14.15.1"
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\" --reporter \"../../configs/mocha-config-mongosh/reporter.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-runtime-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "git://github.com/mongodb-js/mongosh.git"
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\" --reporter \"../../configs/mocha-config-mongosh/reporter.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-runtime-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"url": "git://github.com/mongodb-js/mongosh.git"
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\" --reporter \"../../configs/mocha-config-mongosh/reporter.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"compile": "tsc -p tsconfig.json",
"prepublish": "npm run compile",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 30000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 30000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"compile": "tsc -p tsconfig.json",
"start": "node bin/mongosh.js",
"pretest": "npm run compile",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "git://github.com/mongodb-js/mongosh.git"
},
"scripts": {
"test": "mocha -r ts-node/register -r \"../../scripts/import-expansions.js\" -r \"./test/test-shell-context.ts\" --timeout 15000 --colors \"./test/*.spec.ts\"",
"test": "mocha -r ts-node/register -r \"../../scripts/import-expansions.js\" -r \"./test/test-shell-context.ts\" --timeout 15000 --colors --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./test/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"unsafe-perm": true
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./{src,lib}/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"node": ">=14.15.1"
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 15000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 15000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/history/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"unsafe-perm": true
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./{src,lib}/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"compile": "tsc -p tsconfig.json",
"prepublish": "npm run compile",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/java-shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"scripts": {
"webpack-shell-api": "webpack --mode production",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 --colors -r ts-node/register \"./src/test/js/run-tests.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 --colors -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/test/js/run-tests.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm run test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci"
Expand Down
2 changes: 1 addition & 1 deletion packages/js-multiline-to-singleline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"unsafe-perm": true
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./{src,lib}/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/logging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"prettier": "^2.8.8"
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 15000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 15000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/node-runtime-worker-thread/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"node": ">=14.15.1"
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" -r \"./tests/register-worker.js \" --timeout 15000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" -r \"./tests/register-worker.js \" --timeout 15000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/**/*.spec.ts\"",
"pretest-ci": "node ../../scripts/run-if-package-requested.js npm run webpack-build -- --no-stats --no-devtool",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
Expand Down
2 changes: 1 addition & 1 deletion packages/service-provider-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"compile": "tsc -p tsconfig.json",
"prepublish": "npm run compile",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/service-provider-node-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"scripts": {
"compile": "tsc -p tsconfig.json",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/shell-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"depcheck": "depcheck",
"report-missing-help": "ts-node bin/report-missing-help.ts",
"report-supported-api": "ts-node bin/report-supported-api.ts",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/shell-evaluator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "MongoDB Top Level API Package",
"main": "./lib/index.js",
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./{src,lib}/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/snippet-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"unsafe-perm": true
},
"scripts": {
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register \"./{src,lib}/**/*.spec.ts\"",
"test": "mocha -r \"../../scripts/import-expansions.js\" --timeout 60000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./{src,lib}/**/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"eslint": "eslint",
"lint": "npm run eslint . && npm run prettier -- --check .",
"prepublish": "npm run compile",
"test": "mocha --timeout 15000 -r ts-node/register \"./src/*.spec.ts\"",
"test": "mocha --timeout 15000 -r ts-node/register --reporter \"../../configs/mocha-config-mongosh/reporter.ts\" \"./src/*.spec.ts\"",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
Expand Down
Loading