Visible to the public Code Coverage for Any Kind of Test in Any Kind of Transcompiled Cross-platform Applications

TitleCode Coverage for Any Kind of Test in Any Kind of Transcompiled Cross-platform Applications
Publication TypeConference Paper
Year of Publication2016
AuthorsHirzel, Matthias, Klaeren, Herbert
Conference NameProceedings of the 2Nd International Workshop on User Interface Test Automation
Date PublishedJuly 2016
PublisherACM
Conference LocationNew York, NY, USA
ISBN Number978-1-4503-4412-8
Keywordscode coverage, Code instrumentation, Cross-Platform, Measurement, Metrics, metrics testing, pubcrawl, software quality, UI Testing, Unit testing, Web Testing
Abstract

Code coverage is a widely used measure to determine how thoroughly an application is tested. There are many tools available for different languages. However, to the best of our knowledge, most of them focus on unit testing and ignore end-to-end tests with ui- or web tests. Furthermore, there is no support for determining code coverage of transcompiled cross-platform applications. This kind of application is written in one language, but compiled to and executed in a different programming language. Besides, it may run on a different platform. In this paper, we propose a new code coverage testing method that calculates the code coverage of any kind of test (unit-, integration- or ui-/web-test) for any type of (transcompiled) applications (desktop, web or mobile application). Developers obtain information about which parts of the source code are uncovered by tests. The basis of our approach is generic and may be applied in numerous programming languages based on an abstract syntax tree. We present our approach for any-kind-applications developed in Java and evaluate our tool on a web application created with Google Web Toolkit, on standard desktop applications, and on some small Java applications that use the Swing library to create user interfaces. Our results show that our tool is able to judge the code coverage of any kind of test. In particular, our tool is independent of the unit- or ui-/web test-framework in use. The runtime performance is promising although it is not as fast as already existing tools in the area of unit-testing.

URLhttps://dl.acm.org/doi/10.1145/2945404.2945405
DOI10.1145/2945404.2945405
Citation Keyhirzel_code_2016