tsDetect: an open source test smells detection tool
Authors:
Open Access
- 7 November 2020
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1650-1654
Abstract
The test code, just like production source code, is subject to bad design and programming practices, also known as smells. The presence of test smells in a software project may affect the quality, maintainability, and extendability of test suites making them less effective in finding potential faults and quality issues in the project's production code. In this paper, we introduce tsDetect, an automated test smell detection tool for Java software systems that uses a set of detection rules to locate existing test smells in test code. We evaluate the effectiveness of tsDetect on a benchmark of 65 unit test files containing instances of 19 test smell types. Results show that tsDetect achieves a high detection accuracy with an average precision score of 96% and an average recall score of 97%. tsDetect is publicly available, with a demo video, at: https://testsmells.github.io/Keywords
This publication has 18 references indexed in Scilit:
- An empirical investigation of how and why developers rename identifiers2018
- On the diffuseness and the impact on maintainability of code smells: a large scale empirical investigationEmpirical Software Engineering, 2017
- An empirical investigation into the nature of test smells2016
- Linguistic antipatterns: what they are and how developers perceive themEmpirical Software Engineering, 2015
- Empirically revisiting the test independence assumption2014
- Are test smells really harmful? An empirical studyEmpirical Software Engineering, 2014
- Automated Detection of Test Fixture Strategies and Smells2013
- XUnit test patterns and smells2010
- Debugging Method Names2009
- Rule-based Assessment of Test Quality.The Journal of Object Technology, 2007