Reproducible-Research.de

Concepts and tools for the responsible scientist

User Tools

Site Tools


tools:tests:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:tests:index [2019/01/30 17:47] – created tilltools:tests:index [2020/09/27 12:26] (current) – [Which tool to use] till
Line 1: Line 1:
-{{fa>check-square-o?48&align=right}} ====== Tests ======+{{fa>check-square-o?48&align=right}} 
 + ====== Tests ======
  
 //Well-defined and automatically testable specifications// //Well-defined and automatically testable specifications//
  
 +
 +<WRAP group>
 +<WRAP column 32px>{{fa>key?32}}</WRAP>
 +<WRAP column 85%>
 +  * Testing scientific software is highly important,\\ as it has direct impact on scientific insight.
 +  * Most 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 results in high test coverage.
 +  * High test coverage by automatic tests increases the trust in software.
 +  * Test-driven development leads to tests\\ that document the code and its specifications.
 +</WRAP>
 +</WRAP>
 +
 +
 +===== 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.
 +
 +<WRAP group>
 +<WRAP column 32px>[[https://docs.python.org/3/library/unittest.html|{{fa>check-square-o?32}}]]</WRAP>
 +<WRAP column 76%>
 +[[https://docs.python.org/3/library/unittest.html|Python Unittest Module]]\\ Unit testing framework originally inspired by JUnit
 +</WRAP>
 +</WRAP>
 +
 +
 +\\
 +<WRAP half column leftalign><WRAP button>[[..:metadata:|← Metadata]]</WRAP></WRAP>
 +<WRAP half column rightalign><WRAP button>[[..:|Concepts →]]</WRAP></WRAP>
  
tools/tests/index.txt · Last modified: 2020/09/27 12:26 by till