Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 15 October 2020

SCUTMA: Selecting Components for Unit Testing in Mobile Applications

Josias Gomes1, Isabel K. Villanes1, Silvia M. Ascate1, Awdren Fontão2, Eduardo Noronha de Andrade Freitas3 & Arilo Claudio Dias-Neto1

Journal of Computer Science, Volume 16, Issue 10, pp. 1367–1392 · doi.org/10.3844/jcssp.2020.1367.1392

7,015 accesses3,293 downloads0 citations (Crossref)Metrics
Cite Check for updates

Abstract

Context The source code of a mobile application has several components (i.e., code units) and they have a cost (e.g., test creation and execution) and benefit (e.g., find bug) value for performing unit testing. Problem Choosing in which components unit tests should be done, in order to increase the benefit (effectiveness) and decrease the cost of this activity. Proposal This study presents an approach that supports the selection of components for unit test creation in Android mobile applications. The SCUTMA approach allows the selection of components with respect to the following criteria, which can be combined: Cost of future maintenance, propensity to defects, frequency of call, risk of failure, market vulnerability and business value. Results Two empirical studies were performed to evaluate SCUTMA. The first study aimed at analyzing the correlation between the metrics that represent the criteria described above, where the result showed the possibility of using the metrics Cost of Future Maintenance (CFM), Code Smell (CS), Frequency of Calls (FC), Fault Risk (FR), Market Vulnerability (MV) and Business Value (BV) combined in a solution for component selection. The second study aimed to evaluate the effectiveness of using the SCUTMA approach. The result indicates that SCUTMA selected more components with error (58.33%) than the selection performed by specialists (40%). Conclusions The SCUTMA approach is effective in selecting components for creating unit tests in Android mobile applications.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 3.0 Licence (CC BY 3.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Gomes, J., Villanes, I. K., Ascate, S. M., Fontão, A., Freitas, E. N. A. & Dias-Neto, A. C. (2020). SCUTMA: Selecting Components for Unit Testing in Mobile Applications. Journal of Computer Science, 16(10), 1367–1392. https://doi.org/10.3844/jcssp.2020.1367.1392

Licence
CC BY 3.0
Issue
Volume 16, Issue 10
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
SCUTMA: Selecting Components for Unit Testing in Mobile ApplicationsJournal of Computer Science · Volume 16, Issue 10 · pp. 1367–1392 · CC BY 3.0Download