Difference between revisions of "CI/JUnit"
Line 2: | Line 2: | ||
[[File:JUnitLogo.png|center|150px]] | [[File:JUnitLogo.png|center|150px]] | ||
− | |||
− | |||
− | |||
== Introduction to JUnit == | == Introduction to JUnit == | ||
Latest revision as of 13:50, 31 October 2017
Introduction to JUnit
JUnit is a testing framework which enables the programmers to write unit tests. A unit test can test a software unit, which in Java mostly is one method. Each method therefore has one or more Unit tests which together should cover all the code inside the tested method. It is the first and lowest level of automated tests run in the test automation server. More information on JUnit can be found on this website.
Installation
JUnit consists of a Java library which is already part of the HANtune project. It therefore does not require any installation. While building, Ant will find a test target in the build.xml file which triggers the execution of the unit tests defined in the "test" package in the HANtune branch.
Configuration
JUnit does not require any configuration.