Supporting software evolution through feedback on executing/skipping energy tests for proposed source code changes


Creative Commons License

Sahin Ç. , Pollock L., Clause J.

JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, vol.31, no.4, 2019 (Journal Indexed in SCI) identifier identifier

  • Publication Type: Article / Article
  • Volume: 31 Issue: 4
  • Publication Date: 2019
  • Doi Number: 10.1002/smr.2155
  • Title of Journal : JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS

Abstract

With the increasing use of battery-powered devices comes the need to test mobile applications for energy consumption and energy issues. Unfortunately, energy testing is expensive because it is a manual, labor-intensive process that often requires multiple, separate, energy-measuring devices to collect energy usage data. The high costs of energy testing can negatively affect the planning process of application evolution. For example, developers might be limited in the number of changes they can include in a release because they must conservatively plan to conduct energy testing after each change. In this paper, we present a new approach to provide developers with feedback on executing/skipping energy tests for proposed code changes. Our technique leverages change impact analysis and precomputed API energy usage information. More specifically, for a proposed change, the technique predicts whether energy testing will be required, and if so, which energy tests will need to be run. Such information may allow developers to avoid spending unnecessary time for energy testing and develop an effective application evolution timeline. To investigate the feasibility of our technique, we implemented a prototype for Android applications and conducted three case studies at different granularity levels on 10 Android applications.