Execution and code reuse between test classes

Lucas Pereira da Silva, Patrícia Vilain · 2016

In this paper we describe commonly used fixture setup strategies as well as their disadvantages and advantages. We propose a dependency model and a test fixture sharing model that allow the definition of a new fixture setup strategy. This strategy promotes code reuse by sharing fixture setups between test classes and execution reuse by sharing test fixture between tests. The models are evaluated through an experiment where the new fixture setup strategy presented a reduction of approximately 8 times of execution time.

Read the paper · More papers on PaperTik