3. Automated testing

Developing an extensive toolbox with multiple developers working on the same set of functions can create problems when one of the main engines is adjusted. To overcome this problem many projects tend to write test functions for these key-functions in which the basic functionalities are recorded and tested. Within the framework of OpenEarthTools a matlab based test environment is developed to facilitate testing of the functions.

Tests in general and in OpenEarthTools General information about various types of tests and how we should use them in OpenEarthTools.
Creating a test Describes how to write your own testdefinition and what possibilities the test toolbox has regarding to documenting your testcases.
Running an individual test There are vaious ways to run a test created according to the definition used in OpenEarthTools. This document describes how to run an individual test.
Automated testing Describes the basics of testing with the mtest toolbox.

Tests are meant to check the basic functionalities of functions in the most simple form, so:

  • Test are not meant to show off, keep the tests as simple as possible!!!
  • Do not write a test that needs user input
  • Do not write a test that needs an internet connection to run

(Tests that do need user input will be added to the ignore list for automatic testing of the toolbox)