Add highway tests (#1294)

This PR adds unit tests for the transportation layer, and fixes several bugs in the unit testing code.  It verifies the correct zoom association to the various highway classes, and verifies that updates to highway attributes are populated.

Additionally, the documentation for unit tests in the CONTRIB guide is updated to note the specific make commands for developers to run.
This commit is contained in:
Brian Sperlongano
2021-11-11 02:27:01 -05:00
committed by GitHub
parent 26cfe69a9c
commit d7ea45349e
6 changed files with 177 additions and 6 deletions

View File

@@ -46,6 +46,8 @@ When you are making PR that adds new spatial features to OpenMapTiles schema, pl
It is recommended that you create a [unit test](TESTING.md) when modifying the behavior of the SQL layer. This will ensure that your changes are working as expected when importing or updating OSM data into an OpenMapTiles database.
To run the unit tests, run `make clean destroy-db && make test-sql`
# Verifying that updates still work
When testing a PR, you shoud also verify that the update process completes without error. The following procedure will run the update process.