Reproducible-Research.de

Concepts and tools for the responsible scientist

User Tools

Site Tools


tools:tests:index

This is an old revision of the document!


Tests

Well-defined and automatically testable specifications

  • Testing scientific software is highly important,
    as it has direct impact on scientific insight.
  • The largest part of scientific software is not thoroughly tested or even not tested at all.
  • Tests can only prove the existence of bugs, not their absence.
  • Testing should be done as early as possible, as often as possible, and as automatic as possible.
  • Test automatisation has dramatic impact on the design of the code to be tested (e.g., modularity).
  • Test-driven development turns the usual sequence upside down and leads to high test coverage.
  • High test coverage by automatic tests increases the trust in software.
  • Test-driven development leads to tests documenting the code and its specifications.

Which tool to use

Note: This section is clearly opinionated. There are definitely other tools available. However, this is the tool the author recommends from own experience.

Python Unittest Module
Unit testing framework originally inspired by JUnit

tools/tests/index.1548868142.txt.gz · Last modified: 2019/01/30 18:09 by till