I have several different test classes that require certain objects to be created before these tests run. Now I am wondering if I should put the object initialization code in a separate helper class or superclass.
Doing this will undoubtedly reduce the number of duplicate code in my test classes, but it will also make them less readable.
Is there a guide or template on how to work with common SetUp code for unit tests?
source
share