SoCRATES - Scala Radar for Test Smells

Jonas De Bleser, Dario Di Nucci, Coen De Roover

Research output: Chapter in Book/Report/Conference proceedingConference paper

Abstract

Test smells are indications of poorly designed unit tests. Previous studies have demonstrated their negative impact on test understanding and maintenance. Moreover, surveys show that developers are not able to identify test smells, hindering optimal software quality. Automated tools can aid developers to handle these issues and detect test smells in the early stage of software development. However, few tools are publicly available and all of them target JUnit -- the most popular testing framework in Java. To overcome these limitations, we propose SoCRATES. This fully automated tool is able to identify six test smells in Scala Test which is the most prevalent testing framework in Scala. An empirical investigation on 164 Scala projects shows that our tool is able to reach a high precision without sacrificing recall. Moreover, the results show that Scala projects have a lower diffusion than Java projects. We make SoCRATES publicly available as an IntelliJ IDEA plugin, as well as an open-source project in order to facilitate the detection of test smells.
Original languageEnglish
Title of host publicationScala 2019 - Proceedings of the 10th ACM SIGPLAN International Symposium on Scala, Part of ECOOP 2019
PublisherACM
Pages22-26
Number of pages5
ISBN (Electronic)978-1-4503-6824-7
DOIs
Publication statusPublished - 17 Jul 2019
EventScala Symposium 2019 - Hammersmith, Londen, United Kingdom
Duration: 15 Jul 201919 Jul 2019
https://2019.ecoop.org/home/scala-2019

Publication series

NameScala 2019 - Proceedings of the 10th ACM SIGPLAN International Symposium on Scala, Part of ECOOP 2019

Conference

ConferenceScala Symposium 2019
CountryUnited Kingdom
CityLonden
Period15/07/1919/07/19
Internet address

Fingerprint Dive into the research topics of 'SoCRATES - Scala Radar for Test Smells'. Together they form a unique fingerprint.

Cite this