Project Setup - 52North/IlwisTests GitHub Wiki
Once imported into QtCreator you have to add some project settings so that tests can be run:
- Deploy simple test files
- Supply which tests to run
- Where to find bigger test files, i.e. raster images, etc.
Some tests read single files containing some textual data, e.g. service reponse data to avoid establishing remote connection when testing. This ensures that tests can be run also without network connection. To deploy these files a deploy phase has to be configured in the project settings. Add a Make deploy step and add the install argument.

To supply the test application which tests to run and where the test data is stored you have to add arguments under the projects Run section. The following arguments are recognized:
- A comma-separated list of test modules to run
- Absolute path of test input data directory
- Absolute path of test output data directory
For example:
module1,module2 D:\data\coding\ilwis\testdata_input D:\data\coding\ilwis\testdata_output
To run all tests use all instead of the comma-separated list of modules.
Introduction TODOs
- Download the test data (currently a google login is required) and configure the input folder within the project setup (see screenshot above).
- For the PostgreSQL test a database is needed which has to be named
ilwis-pg-test. Currently test data has to be inserted (available from the download link) here as well since the connector is read-only at the moment. The test asssumes the database is avaiable fromhttp://localhost:5432 and user credentialspostgres | postgres` which should be rather standard in test environments. Adjust the test case if your environment is different.