The presence of test smells related to low-quality test cases is a known factor contributing to problems in maintaining both test suites and production code. The need to avoid and fix test smells is becoming more and more popular in the scientific community, as well as the importance of knowing how to detect and refactor existing test cases. However, these practices are very little considered in academic testing courses, due also to the difficulty of making them attractive to students. This position paper presents an approach for teaching test smells based on gamification. It exploits a tool, TSGame, that provides a serious game where students can familiarize with test smells by practicing with their detection and removal from JUnit test code. TSGame has been implemented as a Web-based application that allows a teacher to assign students test smell detection and refactoring tasks that they have to accomplish in game sessions. Upon completion of the tasks they have the possibility to gain rewards. A preliminary version of the tool has been validated in the context of a Software Testing course at Master degree level, with 37 students that showed the tool effectiveness and usefulness for test smell learning.

Test Smells Learning by a Gamification Approach / Fasolino, Anna Rita; Tramontana, Porfirio. - (2024), pp. 30-33. (Intervento presentato al convegno 3rd ACM International Workshop on Gamification in Software Development, Verification, and Validation tenutosi a Vienna, Austria nel September 17th, 2024) [10.1145/3678869.3685687].

Test Smells Learning by a Gamification Approach

Fasolino, Anna Rita
;
Tramontana, Porfirio
2024

Abstract

The presence of test smells related to low-quality test cases is a known factor contributing to problems in maintaining both test suites and production code. The need to avoid and fix test smells is becoming more and more popular in the scientific community, as well as the importance of knowing how to detect and refactor existing test cases. However, these practices are very little considered in academic testing courses, due also to the difficulty of making them attractive to students. This position paper presents an approach for teaching test smells based on gamification. It exploits a tool, TSGame, that provides a serious game where students can familiarize with test smells by practicing with their detection and removal from JUnit test code. TSGame has been implemented as a Web-based application that allows a teacher to assign students test smell detection and refactoring tasks that they have to accomplish in game sessions. Upon completion of the tasks they have the possibility to gain rewards. A preliminary version of the tool has been validated in the context of a Software Testing course at Master degree level, with 37 students that showed the tool effectiveness and usefulness for test smell learning.
2024
Test Smells Learning by a Gamification Approach / Fasolino, Anna Rita; Tramontana, Porfirio. - (2024), pp. 30-33. (Intervento presentato al convegno 3rd ACM International Workshop on Gamification in Software Development, Verification, and Validation tenutosi a Vienna, Austria nel September 17th, 2024) [10.1145/3678869.3685687].
File in questo prodotto:
File Dimensione Formato  
isstaws24gamifymain-id6-p-f8c65ac85f-80380-final.pdf

accesso aperto

Licenza: Creative commons
Dimensione 376.49 kB
Formato Adobe PDF
376.49 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11588/974983
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact