Unit testing docs (#3698)

* Updating library-tests and associated documentation to be more informative

* Fixing heading markup for updated unit testing docs
This commit is contained in:
Quinn Chrzan
2017-02-13 09:58:46 -05:00
committed by Karen Shea
parent 38a1edfe3c
commit 1ed1bae249
2 changed files with 29 additions and 0 deletions
+23
View File
@@ -28,6 +28,29 @@ This dataset is a small extract and may not even contain all tags or edge cases.
Furthermore this dataset is not in sync with what you see in up-to-date OSM maps or on the demo server.
See the library tests for how to add new dataset dependent tests.
To prepare the test data simply `cd test/data/` and then run `make`.
### Running Tests
To build the unit tests:
```
cd build
cmake ..
make tests
```
You should see the compiled binaries in `build/unit_tests`, you can then run each suite individually:
```
./engine-tests
```
For `library-tests` you will need to provide a path to the test data:
```
./library-tests ../../test/data/monaco.osrm
```
## Cucumber