Test case quality: an empirical study on belief and evidence

07/12/2023
by   Daniel Lucrédio, et al.
0

Software testing is a mandatory activity in any serious software development process, as bugs are a reality in software development. This raises the question of quality: good tests are effective in finding bugs, but until a test case actually finds a bug, its effectiveness remains unknown. Therefore, determining what constitutes a good or bad test is necessary. This is not a simple task, and there are a number of studies that identify different characteristics of a good test case. A previous study evaluated 29 hypotheses regarding what constitutes a good test case, but the findings are based on developers' beliefs, which are subjective and biased. In this paper we investigate eight of these hypotheses, through an extensive empirical study based on open software repositories. Despite our best efforts, we were unable to find evidence that supports these beliefs. This indicates that, although these hypotheses represent good software engineering advice, they do not necessarily mean that they are enough to provide the desired outcome of good testing code.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/29/2021

Developers perception on the severity of test smells: an empirical study

Unit testing is an essential component of the software development life-...
research
04/25/2022

Bug Characteristics in Quantum Software Ecosystem

With the advance in quantum computing in recent years, quantum software ...
research
04/19/2021

Demystifying Regular Expression Bugs: A comprehensive study on regular expression bug causes, fixes, and testing

Regular expressions cause string-related bugs and open security vulnerab...
research
03/21/2021

An Empirical Study of OSS-Fuzz Bugs

Continuous fuzzing is an increasingly popular technique for automated qu...
research
05/12/2022

Conversational DevBots for Secure Programming: An Empirical Study on SKF Chatbot

Conversational agents or chatbots are widely investigated and used acros...
research
12/20/2019

Assessing Practitioner Beliefs

Just because software developers say they believe in "X" that does not n...
research
12/20/2019

Assessing Practitioner Beliefs about Software Defect Prediction

Just because software developers say they believe in "X", that does not ...

Please sign up or login with your details

Forgot password? Click here to reset