Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit c76f88a

Browse files
committed
Document how to run the test suite.
1 parent 49ae00d commit c76f88a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ You should see the process running, as well as the `grep mongo` command process
8181
grunt
8282
```
8383

84+
#### Set environment variables
85+
86+
Set the `MONGODB_TEST_URI` environment variable to point to a test database
87+
that will be wiped every time the test suite is run, e.g.:
88+
89+
```
90+
export MONGODB_TEST_URI=mongodb://localhost:27017/unittests
91+
```
92+
8493
### Option 2: Use Docker
8594

8695
1. Download [Docker Community Edition](https://www.docker.com/community-edition).
@@ -117,6 +126,14 @@ If you ever get your Docker setup into a weird state where nothing works, or if
117126

118127
You'll then need to re-run `bash docker-update.sh` set everything up again.
119128

129+
### Running the test suite
130+
131+
To run the test suite, run:
132+
133+
```
134+
npm test
135+
```
136+
120137
### More Questions
121138

122139
Check out [MEAN.JS](http://meanjs.org/docs/0.3.x/) - will have more tutorials on the architecture setup and things for troubleshooting.

0 commit comments

Comments
 (0)