Chapter 1. Introduction

Table of Contents

1.1. Supported Testing Concepts
1.2. Requirements

The TestCenter is a framework for testing different aspects of MeVisLab. Tests are specified in the Python scripting language. The following chapter introduces testing concepts and requirements of the TestCenter.

1.1. Supported Testing Concepts

This section introduces the testing concepts that are supported in the TestCenter. They are unit testing [1] , regression testing [2] , and the so-called formal testing.

  • Unit testing is performed to gain confidence in the validity of the implemented algorithms by verifying them in tests. Unit tests must be designed and written specifically for each algorithm and function so that they detect as many problems as possible. The result is a live specification for the algorithm that can easily be verified.

  • Regression testing is performed by repeatedly executing the available tests (unit and formal). It helps to detect changes that break algorithms. With the integration of the TestCenter into the build process, the tests can be executed for each build on every supported platform.

  • Formal testing relates to MeVisLab. It tests whether a group of MeVisLab modules meets certain formal aspects, for example, the presence of meta information such as module documentation.

The tests can be of functional or generic types. The test type must be specified in the test definition.

  • Functional tests are used for unit tests. They test a specific feature, for example, an SQL database interface.

  • Generic tests are used for formal tests of a larger set of modules. This type of test is executed for all of these modules, for example, to verify that the modules' field names follow the specification.



[1] see https://en.wikipedia.org/wiki/Unit_testing

[2] see https://en.wikipedia.org/wiki/Regression_testing