This repository was archived by the owner on Jan 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Test suite
Carla edited this page Jun 23, 2015
·
6 revisions
The suite of tests available under geocoder/test/test.sh needs to be run directly in the database that includes the data and functions to be tested.
The scope of this test library is to:
- Guarantee a minimum on the quality of the generated data (i.e.: the countries database contains the appropriate number of countries).
- Check that the result of the described functions matches with the expected behaviour (i.e.: Geocoding "Rome" in Italy will return a point with the appropriate coordinates).
The tree directory of the test folders is defined as follows:
.
|-geocoder
|---type
|-----sql
|-----data
|-----test
|-------data
|-------functions
In order to test the data and the functions created under the script available in the different folders, you will need to run bash test.sh from test/data and test/functions respectively.
The script used in this test suite has been obtained from the tests of the CartoDB PostgreSQL repository and adapted conveniently.
CartoDB Data Services