Artisan: An Action-Based Test Carving Tool for Android Apps

Alessio Gambi, Mengzhen Li, Mattia Fazzini

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

Abstract

Android app developers should take advantage of end-to-end tests to validate user flows and unit tests to perform focused debugging activities. While there is considerable tool support for creating end-to-end tests in the form of GUI tests, Android app developers lack automated support for creating unit tests, in particular, unit tests that run on a Java Virtual Machine (JVM). These tests are complex to create, as there is a need to suitably handle the coupling between the app under test (AUT) and the Android framework while creating the tests.To help Android app developers create unit tests that run on the JVM, we present a tool called ARTISAN. The tool uses the idea of test carving to create unit tests from GUI tests. Specifically, ARTISAN traces method invocations in the AUT during GUI testing and then creates focused unit tests that replicate the behavior of executed methods. We used 152 end-to-end tests from five apps to perform an empirical evaluation of ARTISAN and the tool was able to generate unit tests that cover a significant portion of the code exercised by the GUI tests (i.e., 45% of the initial GUI-test-based statement coverage on average). ARTISAN and its related experimental data are publicly available at https://github.com/se-umn/artisan. We provide a video demo of the tool at https://youtu.be/pRhVAhquPGk.

Original languageEnglish (US)
Title of host publicationProceedings - 2023 IEEE International Conference on Software Maintenance and Evolution, ICSME 2023
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages580-585
Number of pages6
ISBN (Electronic)9798350327830
DOIs
StatePublished - 2023
Event39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2023 - Bogota, Colombia
Duration: Oct 1 2023Oct 6 2023

Publication series

NameProceedings - 2023 IEEE International Conference on Software Maintenance and Evolution, ICSME 2023

Conference

Conference39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2023
Country/TerritoryColombia
CityBogota
Period10/1/2310/6/23

Bibliographical note

Publisher Copyright:
© 2023 IEEE.

Fingerprint

Dive into the research topics of 'Artisan: An Action-Based Test Carving Tool for Android Apps'. Together they form a unique fingerprint.

Cite this