User Tools

Site Tools


unittests

Differences

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

Link to this comparison view

unittests [2019/08/09 11:54]
meesters created
unittests [2019/08/09 13:37] (current)
meesters
Line 1: Line 1:
 ====== Unit Testing ====== ====== Unit Testing ======
 +
 +[[https://​en.wikipedia.org/​wiki/​Unit_testing|Unit testing]] is part of the development process by which portions of the source code can be tested upon adherence to quality criteria or whether they fulfill expectations.
 +
 +The following lists is //not comprehensive//,​ we only attempt to give an overview for common languages used on our system. If you think a crucial part is missing: Feel free to contact us.
 +
 +===== C++ =====
 +
 +For C++ we provide a module ''​lib/​Catch2/<​version>'',​ which contains the [[https://​github.com/​catchorg/​Catch2/​blob/​master/​docs/​tutorial.md#​top|Catch2]] framework headers and more. To use it load the module. To see what is inside, look into the module itself:
 +
 +<code shell>
 +ls $EBROOTCATCH2
 +</​code>​
  
 ===== Python ===== ===== Python =====
  
 Unit tests for Python are [[https://​docs.python.org/​3/​library/​unittest.html|build-in]]. Unit tests for Python are [[https://​docs.python.org/​3/​library/​unittest.html|build-in]].
 +
 +===== R =====
 +
 +For R a package called [[https://​testthat.r-lib.org/​|"​testthat"​]] exists. This is currently not part of the R-modules, yet can be installed via cran.
unittests.txt · Last modified: 2019/08/09 13:37 by meesters