Stryker is a mutation testing tool. Mutation tests are used to provide a new mindset when designing tests. It evaluates the quality of existing software tests by modifying a program in small batches. The main idea is mutating the behavior of the tests while detecting and rejecting mutations that might happen.
Let's say you are writing some code to validate whether a kid can ride a roller coaster:
function isAllowedToRideARollerCoaster(kid) { return kid.height >= 318.3;}
Stryker will find the return statement and decide to change it in a few different ways, like so:
/* 1 */ return kid.height > 360;/* 2 */ return kid.height < 250;/* 3 */ return false;/* 4 */ return true;
Stryker calls those modifications mutants. So, for the preceding ...