Skip Rotten Green Test

Definition:

  • Contains guards to stop their execution early under certain conditions.

Code Example:

@Test public void testNormalizedKeyReadWriter(){
   . . .
   TypeComparator <T> comp1 = getComparator(true);

   if(!comp1.supportsSerializationWithKeyNormalization()){
    return ;
   }
   . . .
   assertTrue(comp1.compareToReference(comp2) == 0);
   . . .
}

References:

Quality attributes

  • - Code Example

  • - Cause and Effect

  • - Frequency

  • - Refactoring