Do Static Analysis Tools Affect Software Quality when Using Test-driven Development?

11Citations
Citations of this article
21Readers
Mendeley users who have this article in their library.

Abstract

Background. Test-Driven Development (TDD) is an agile software development practice, which encourages developers to write "quickand-dirty"production code to make tests pass, and then apply refactoring to "clean"written code. However, previous studies have found that refactoring is not applied as often as the TDD process requires, potentially affecting software quality. Aims. We investigated the benefits of leveraging a Static Analysis Tool (SAT)-plugged-in the Integrated Development Environment (IDE)-on software quality, when applying TDD. Method. We conducted two controlled experiments, in which the participants-92, in total-performed an implementation task by applying TDD with or without a SAT highlighting the presence of code smells in their source code. We then analyzed the effect of the used SAT on software quality. Results. We found that, overall, the use of a SAT helped the participants to significantly improve software quality, yet the participants perceived TDD more difficult to be performed. Conclusions. The obtained results may impact: (i) practitioners, helping them improve their TDD practice through the adoption of proper settings and tools; (ii) educators, in better introducing TDD within their courses; and (iii) researchers, interested in developing better tool support for developers, or further studying TDD.

Cite

CITATION STYLE

APA

Romano, S., Zampetti, F., Baldassarre, M. T., Di Penta, M., & Scanniello, G. (2022). Do Static Analysis Tools Affect Software Quality when Using Test-driven Development? In International Symposium on Empirical Software Engineering and Measurement (pp. 80–91). IEEE Computer Society. https://doi.org/10.1145/3544902.3546233

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free