Supporting software evolution through feedback on executing/skipping energy tests for proposed source code changes
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 …
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 …
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.
Wiley Online Library