Lienhard, Adrian; Girba, Tudor Adrian; Greevy, Orla; Nierstrasz, Oscar Marius (2008). Test Blueprints - Exposing Side Effects in Execution Traces to Support Writing Unit Tests. In: 12th European Conference on Software Maintenance and Reengineering (pp. 83-92). Washington, DC: IEEE Computer Society 10.1109/CSMR.2008.4493303
Text
04493303.pdf - Published Version Restricted to registered users only Available under License Publisher holds Copyright. Download (327kB) |
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.
Item Type: |
Conference or Workshop Item (Paper) |
---|---|
Division/Institute: |
08 Faculty of Science > Institute of Computer Science (INF) 08 Faculty of Science > Institute of Computer Science (INF) > Software Composition Group (SCG) [discontinued] |
UniBE Contributor: |
Lienhard, Adrian, Girba, Tudor Adrian, Greevy, Orla, Nierstrasz, Oscar |
Subjects: |
000 Computer science, knowledge & systems |
ISBN: |
978-1-4244-2157-2 |
Publisher: |
IEEE Computer Society |
Language: |
English |
Submitter: |
Factscience Import |
Date Deposited: |
04 Oct 2013 15:22 |
Last Modified: |
02 Mar 2023 23:23 |
Publisher DOI: |
10.1109/CSMR.2008.4493303 |
BORIS DOI: |
10.7892/boris.37137 |
URI: |
https://boris.unibe.ch/id/eprint/37137 (FactScience: 206795) |