返回
Investigating developers' perception on software testability and its effects
DOI:10.1007/s10664-023-10373-0.png)
摘要
En 中文
The opinions and perspectives of software developers are highly regarded in software engineering research. The experience and knowledge of software practitioners are frequently sought to validate assumptions and evaluate software engineering tools, techniques, and methods. However, experimental evidence may unveil further or different insights, and in some cases even contradict developers' perspectives. In this work, we investigate the correlation between software developers' perspectives and experimental evidence about testability smells (i.e., programming practices that may reduce the testability of a software system). Specifically, we first elicit opinions and perspectives of software developers through a questionnaire survey on a catalog of four testability smells, we curated for this work. We also extend our tool DesigniteJava to automatically detect these smells in order to gather empirical evidence on testability smells. To this end we conduct a large-scale empirical study on 1, 115 Java repositories containing approximately 46 million lines of code to investigate the relationship of testability smells with test quality, number of tests, and reported bugs. Our results show that testability smells do not correlate with test smells at the class granularity or with test suit size. Furthermore, we do not find a causal relationship between testability smells and bugs. Moreover, our results highlight that the empirical evidence does not match developers' perspective on testability smells. Thus, suggesting that despite developers' invaluable experience, their opinions and perspectives might need to be complemented with empirical evidence before bringing it into practice. This further confirms the importance of data-driven software engineering, which advocates the need and value of ensuring that all design and development decisions are supported by data.
Keyword:
Software testability
Software test quality
Testability smells
Developers' opinions and perspectives
Software quality
期刊
IF:
3.6
论文数:
2.0K
被引数:
5.3K
机构
引用论文
Smells in software test code: A survey of knowledge in industry and academia软件测试代码中的气味: 工业界和学术界的知识调查
Emergent Network Topology within the Respiratory Rhythm-Generating Kernel Evolved In Silico
PLOS ONE
IF0
Comparative genetics of the central nervous system in epigean and hypogean Astyanax mexicanus
Genetica
IF0

