Is There Anybody There?

Definition:

  • Any flickering test that occasionally breaks a build – bad test or bad code?

Code Example:

@Test
public void testMethod() {
    int expected = 5;
    int actual = MyUnstableClass.doSomethingWithRandomReturns();
    assertEquals(expected, actual);
}

References:

Quality attributes

  • - Code Example

  • - Cause and Effect

  • - Frequency

  • - Refactoring