You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Testing driver changes with mongosh](#testing-driver-changes-with-mongosh)
34
-
-[Point mongosh to the driver](#point-mongosh-to-the-driver)
35
-
-[Run specific package tests](#run-specific-package-tests)
36
34
-[KMIP FLE support tests](#kmip-fle-support-tests)
37
35
-[Deployed KMS Tests](#deployed-kms-tests)
38
36
-[Azure KMS](#azure-kms)
39
37
-[GCP KMS](#gcp-kms)
38
+
-[Deployed Atlas Tests](#deployed-atlas-tests)
39
+
-[Launching an Atlas Cluster](#launching-an-atlas-cluster)
40
+
-[Search Indexes](#search-indexes)
41
+
-[Deployed Lambda Tests](#deployed-lambda-tests)
40
42
-[TODO Special Env Sections](#todo-special-env-sections)
43
+
-[Testing driver changes with mongosh](#testing-driver-changes-with-mongosh)
44
+
-[Point mongosh to the driver](#point-mongosh-to-the-driver)
45
+
-[Run specific package tests](#run-specific-package-tests)
41
46
42
47
## About the Tests
43
48
@@ -594,44 +599,6 @@ The following steps will walk you through how to run the tests for CSFLE.
594
599
595
600
To run the functional tests using the crypt shared library instead of `mongocryptd`, download the appropriate version of the crypt shared library forthe enterprise server version [here](https://www.mongodb.com/download-center/enterprise/releases) and then set the location of itin the environment variable `CRYPT_SHARED_LIB_PATH`.
596
601
597
-
#### Testing driver changes with mongosh
598
-
599
-
These steps require `mongosh` to be available locally. Clone it from GitHub.
600
-
601
-
`mongosh` uses a `lerna` monorepo. As a result, `mongosh` contains multiple references to the `mongodb` package
602
-
in their `package.json`s.
603
-
604
-
Set up `mongosh` by following the steps in the `mongosh` readme.
605
-
606
-
##### Point mongosh to the driver
607
-
608
-
mongosh contains a script that does this. To use the script, create an environment
609
-
variable `REPLACE_PACKAGE` that contains a string in the form
610
-
`mongodb:<path to your local instance of the driver>`. The package replacement script will replace
611
-
all occurrences of `mongodb` with the local path of your driver.
612
-
613
-
An alternative, which can be useful for
614
-
testing a release, is to first run `npm pack` on the driver. This generates a tarball containing all the code
615
-
that would be uploaded to `npm`if it were released. Then, set the environment variable `REPLACE_PACKAGE`
616
-
with the full path to the file.
617
-
618
-
Once the environment variable is set, run replace package in`mongosh` with:
619
-
```sh
620
-
npm run replace:package
621
-
```
622
-
623
-
##### Run specific package tests
624
-
625
-
`mongosh`'s readme documents how to run its tests. Most likely, it isn't necessary to run all of mongosh's
626
-
tests. The `mongosh` readme also documents how to run tests for a particular scope. The scopes are
627
-
listed in the `generate_mongosh_tasks.js` evergreen generation script.
628
-
629
-
For example, to run the `service-provider-server` package, run the following command in `mongosh`:
630
-
631
-
```shell
632
-
lerna run test --scope @mongosh/service-provider-server
0 commit comments