Skip to content, Skip to search

Changes

Fiji/Contribution requirements

231 bytes added, 03:24, 26 September 2014
Regression tests: good idea: start a bug fix with a (still failing) regression test
Writing regression tests is [https://github.com/junit-team/junit/wiki/Getting-started easy]: create a class in the ''src/test/java/'' directory structure and annotate methods with ''@Test'', testing for various [https://github.com/junit-team/junit/wiki/Assertions assertions] (the most common ones are ''assertEquals()'', ''assertTrue()'' and ''assertNotNull()'').
 
In particular when fixing a bug, it is a good idea to write a regression test ''first'', making sure that it actually fails. After that, one should develop the fix, getting a cozy and warm feeling once the regression test passes.
== Continuous integration: Jenkins ==
Bureaucrat, incoming, administrator, uploaders
1,924
edits