EUnit: A Unit Testing Framework for Model Management Tasks

Antonio García-Domínguez, Dimitris Kolovos, Louis Matthew Rose, Richard Freeman Paige, Immaculada Medina-Bulo

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

Abstract

Validating and transforming models are essential steps in model-driven engineering. These tasks are often implemented as operations in general purpose programming languages or task-specific model management languages. Just like other software artefacts, these tasks must be tested to reduce the risk of defects. Testing model management tasks requires testers to select and manage the relevant combinations of input models, tasks and expected outputs. This is complicated by the fact that many technologies may be used in the same system, each with their own integration challenges. In addition, advanced test oracles are required: tests may need to compare entire models or directory trees.
To tackle these issues, we propose creating an integrated unit testing framework for model management operations. We have developed the EUnit unit testing framework to validate our approach. EUnit tests specify how models and tasks are to be combined, while staying decoupled from the specific technologies used.
Original languageEnglish
Title of host publicationModel Driven Engineering Languages and Systems
Subtitle of host publication14th International Conference, MODELS 2011, Wellington, New Zealand, October 16-21, 2011, Proceedings
PublisherSpringer
Pages395-409
Number of pages15
Volume6981 LNCS
ISBN (Print)978-3-642-24485-8
DOIs
Publication statusPublished - 2011
EventACM/IEEE 14th International Conference on Model Driven Engineering Languages and Systems (MoDELS 2011) - Wellington, New Zealand
Duration: 16 Oct 201121 Oct 2011

Publication series

NameLecture Notes in Computer Science
Volume6981
ISSN (Print)0302-9743

Conference

ConferenceACM/IEEE 14th International Conference on Model Driven Engineering Languages and Systems (MoDELS 2011)
Country/TerritoryNew Zealand
CityWellington
Period16/10/1121/10/11

Cite this