• LOGIN
Repository logo

BORIS Portal

Bern Open Repository and Information System

  • Publication
  • Projects
  • Funding
  • Research Data
  • Organizations
  • Researchers
  • LOGIN
Repository logo
Unibern.ch
  1. Home
  2. Publications
  3. Test Blueprints - Exposing Side Effects in Execution Traces to Support Writing Unit Tests
 

Test Blueprints - Exposing Side Effects in Execution Traces to Support Writing Unit Tests

Options
  • Details
BORIS DOI
10.7892/boris.37137
Date of Publication
2008
Publication Type
Conference Paper
Division/Institute

Institut für Informat...

Author
Lienhard, Adrian
Institut für Informatik (INF)
Girba, Tudor Adrian
Institut für Informatik (INF)
Greevy, Orla
Institut für Informatik (INF)
Nierstrasz, Oscar
Institut für Informatik (INF)
Subject(s)

000 - Computer scienc...

Publisher
IEEE Computer Society
Language
English
Publisher DOI
10.1109/CSMR.2008.4493303
Description
Writing unit tests for legacy systems is a key maintenance task. When writing tests for object-oriented programs, objects need to be set up and the expected effects of executing the unit under test need to be verified. If developers lack internal knowledge of a system, the task of writing tests is non-trivial. To address this problem, we propose an approach that exposes side effects detected in example runs of the system and uses these side effects to guide the developer when writing tests. We introduce a visualization called Test Blueprint, through which we identify what the required fixture is and what assertions are needed to verify the correct behavior of a unit under test. The dynamic analysis technique that underlies our approach is based on both tracing method executions and on tracking the flow of objects at runtime. To demonstrate the usefulness of our approach we present results from two case studies.
Handle
https://boris-portal.unibe.ch/handle/20.500.12422/196619
Show full item
File(s)
FileFile TypeFormatSizeLicensePublisher/Copright statementContent
04493303.pdftextAdobe PDF319.49 KBpublished
BORIS Portal
Bern Open Repository and Information System
Build: d1c7f7 [27.06. 13:56]
Explore
  • Projects
  • Funding
  • Publications
  • Research Data
  • Organizations
  • Researchers
More
  • About BORIS Portal
  • Send Feedback
  • Cookie settings
  • Service Policy
Follow us on
  • Mastodon
  • YouTube
  • LinkedIn
UniBe logo