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
- Update build command in README and various spelling fixes
- Add example to CONTRIBUTING page
- Remove golint warnings
- Clean up some error messages and comments
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,11 +53,19 @@ To run unit and integration tests:
53
53
```
54
54
go test -v ./...
55
55
```
56
-
If TOOLS_TESTING_UNIT is set to a true value in the environment, unit tests will run.
57
-
If TOOLS_TESTING_INTEGRATION is set to a true value in the environment, integration tests will run.
56
+
57
+
If `TOOLS_TESTING_UNIT` is set to a true value in the shell environment, unit tests will run.
58
+
59
+
If `TOOLS_TESTING_INTEGRATION` is set to a true value in the shell environment, integration tests will run.
58
60
59
61
Integration tests require a `mongod` (running on port 33333) while unit tests do not.
60
62
63
+
Example of how to run a specific integration test:
64
+
65
+
```
66
+
TOOLS_TESTING_INTEGRATION=true go test -v ./... -run TestImportDocuments
67
+
```
68
+
61
69
To run the quality assurance tests, you need to have the latest stable version of the rebuilt tools, `mongod`, `mongos`, and `mongo` in your current working directory.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ cd mongo-tools
26
26
27
27
Then run `./make build` to build all the tools, placing them in the `bin` directory inside the repository.
28
28
29
-
You can also build a subset of the tools using the `-tools` option. For example, `./make build -tools=mongodump,mongorestore` builds only `mongodump` and `mongorestore`.
29
+
You can also build a subset of the tools using the `-pkgs` option. For example, `./make build -pkgs=mongodump,mongorestore` builds only `mongodump` and `mongorestore`.
30
30
31
31
To use the build/test scripts in this repository, you **_must_** set GOROOT to your Go root directory. This may depend on how you installed Go.
0 commit comments