2018 · 63 citations · 18 references
ComputingComputer ScienceSoftware EngineeringTest ConstructionTest DevelopmentSoftware DesignSoftware TestingAutomated Test GenerationEmpirical EvaluationReadability In TestingSource Code EvolutionTest Case GenerationTest CasesTest GenerationTestability
Software testing is one of the most crucial tasks in the typical development process. Developers are usually required to write unit test cases for the code they implement. Since this is a time-consuming task, in last years many approaches and tools for automatic test case generation --- such as EvoSuite--- have been introduced. Nevertheless, developers have to maintain and evolve tests to sustain the changes in the source code; therefore, having readable test cases is important to ease such a process. However, it is still not clear whether developers make an effort in writing readable unit tests. Therefore, in this paper, we conduct an explorative study comparing the readability of manually written test cases with the classes they test. Moreover, we deepen such analysis looking at the readability of automatically generated test cases. Our results suggest that developers tend to neglect the readability of test cases and that automatically generated test cases are generally even less readable than manually written ones.
18
Dominance statistics: Ordinal analyses to answer ordinal questions.
Norman Cliff · Psychological Bulletin · 1993 · 1.2K citations
The Oracle Problem in Software Testing: A Survey
Earl T. Barr, Mark Harman, Phil McMinn et al. · IEEE Transactions on Software Engineering · 2014 · 1K citations · Full text
Gordon Fraser, Andrea Arcuri · 2011 · 1K citations
Gordon Fraser, Andrea Arcuri · IEEE Transactions on Software Engineering · 2012 · 583 citations