TSR-Catalog
latest

Test Smells

  • Assertion Roulette
  • Bad naming
  • Inappropriate Assertion
  • Handling Exception
  • Ignored Test
  • Redundant Print
  • Empty Test
  • Unknown Test
  • Sleepy Test

Test Refactorings

  • Rename class
  • Replace try/catch block with @Test expected annotation
  • Replace the try/catch, @Test expected and @Rule annotations with the assertThrows method
  • Replace the not (!) operator within the assertions with an appropriate assertion
  • Split conditional expressions into two different parameters
  • Replace the reserved words with an appropriate assertion
  • Add an explanation message to the assertion
  • Split the assertions into single test methods
  • Surround assertions with assertAll method

About us

  • Contributing to TSR-Catalog
  • Our team
TSR-Catalog
  • Search


© Copyright 2023, Luana. Revision 344848e4.

Built with Sphinx using a theme provided by Read the Docs.