From 40d485c292a14f8251a4e3724d1bb5f8cf11577c Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Wed, 17 Aug 2022 16:53:00 -0400 Subject: [PATCH] test(NODE-4553): move check test to action folder (#3366) --- package.json | 2 +- test/{unit => action}/dependency.test.ts | 0 test/readme.md | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename test/{unit => action}/dependency.test.ts (100%) diff --git a/package.json b/package.json index 717b317814..8ebc7157c8 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "check:lint": "npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd", "check:eslint": "eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test", "check:tsd": "tsd --version && tsd", - "check:dependencies": "mocha test/unit/dependency.test.ts", + "check:dependencies": "mocha test/action/dependency.test.ts", "check:dts": "node ./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd", "check:test": "mocha --config test/mocha_mongodb.json test/integration", "check:unit": "mocha test/unit", diff --git a/test/unit/dependency.test.ts b/test/action/dependency.test.ts similarity index 100% rename from test/unit/dependency.test.ts rename to test/action/dependency.test.ts diff --git a/test/readme.md b/test/readme.md index f1027ed1f8..09b47a158c 100644 --- a/test/readme.md +++ b/test/readme.md @@ -30,6 +30,7 @@ Below is a summary of the types of test automation in this repo. | Benchmark | `/test/benchmarks` | The benchmark tests report how long a designated set of tests take to run. They are used to measure performance. | `npm run check:bench` | | Specialized Environment | `/test/manual` | The specalized environment tests are functional tests that require specialized environment setups in Evergreen.

**Note**: "manual" in the directory path does not refer to tests that should be run manually. These tests are automated. These tests have a special Evergreen configuration and run in isolation from the other tests. | There is no single script for running all of the specialized environment tests. Instead, you can run the appropriate script based on the specialized environment you want to use:
- `npm run check:atlas` to test Atlas
- `npm run check:adl` to test Atlas Data Lake
- `npm run check:ocsp` to test OSCP
- `npm run check:kerberos` to test Kerberos
- `npm run check:tls` to test TLS
- `npm run check:ldap` to test LDAP authorization | | TypeScript Definition | `/test/types` | The TypeScript definition tests verify the type definitions are correct. | `npm run check:tsd` | +| Github Actions | `/test/action` | Tests that run as Github actions such as dependency checking. | Currently only `npm run check:dependencies` but could be expanded to more in the future. | ### Spec Tests