Unit testing for wireless sensor networks

  • Authors:
  • Michael Okola;Kamin Whitehouse

  • Affiliations:
  • University of Virginia, Charlottesville, Virginia;University of Virginia, Charlottesville, Virginia

  • Venue:
  • Proceedings of the 2010 ICSE Workshop on Software Engineering for Sensor Network Applications
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Unit testing is an important tool for validating software modules, particularly for wireless sensor networks (WSNs) where bugs are difficult to find and modular software is composed in numerous combinations. However, existing approaches can only test for events or state on a single node; they cannot evaluate distributed state. In this paper, we present a new unit testing framework that addresses this concern by defining tests as a single Python script that executes on the PC. This script automatically generates test programs, coordinates the inputs, and collects outputs from all nodes in the network. This approach allows validation of distributed state, while simulataneously reducing the amount of code needed to define a unit test.