Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Test suite

Carla edited this page Jun 23, 2015 · 6 revisions

Data services test suite

Description

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.

Scope of the test suite

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).

Structure

The tree directory of the test folders is defined as follows:

   .
   |-geocoder
   |---type
   |-----sql
   |-----data
   |-----test
   |-------data
   |-------functions

How to run the tests

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.

Credits

The script used in this test suite has been obtained from the tests of the CartoDB PostgreSQL repository and adapted conveniently.

Clone this wiki locally