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

cris.virtualsource.author-orcid4f0ad21e-6a93-48a9-ae0d-2b9c1b630283
cris.virtualsource.author-orcidc50b20f5-4e3c-4b8e-a3b1-9ab0f9efa6c0
cris.virtualsource.author-orcidd44a4bef-4ac0-475d-a717-7ab2d2ae2a4e
cris.virtualsource.author-orcide7e37c38-3cec-4a31-83a2-5be23f6f0f2a
datacite.rightsrestricted
dc.contributor.authorLienhard, Adrian
dc.contributor.authorGirba, Tudor Adrian
dc.contributor.authorGreevy, Orla
dc.contributor.authorNierstrasz, Oscar
dc.date.accessioned2025-01-08T19:33:05Z
dc.date.available2025-01-08T19:33:05Z
dc.date.issued2008
dc.description.abstractWriting 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.
dc.description.numberOfPages10
dc.description.sponsorshipInstitut für Informatik (INF)
dc.identifier.doi10.7892/boris.37137
dc.identifier.publisherDOI10.1109/CSMR.2008.4493303
dc.identifier.urihttps://boris-portal.unibe.ch/handle/20.500.12422/196619
dc.language.isoen
dc.publisherIEEE Computer Society
dc.publisher.placeWashington, DC
dc.relation.conference12th European Conference on Software Maintenance and Reengineering
dc.relation.isbn978-1-4244-2157-2
dc.relation.organizationDCD5A442C2AFE17DE0405C82790C4DE2
dc.relation.organizationDCD5A442C2AFE17DE0405C82790C4DE2
dc.subject.ddc000 - Computer science, knowledge & systems
dc.titleTest Blueprints - Exposing Side Effects in Execution Traces to Support Writing Unit Tests
dc.typeconference_item
dspace.entity.typePublication
dspace.file.typetext
oaire.citation.conferenceDate01.-04.04.2008
oaire.citation.conferencePlaceAthen, Griechenland
oaire.citation.endPage92
oaire.citation.startPage83
oairecerif.author.affiliationInstitut für Informatik (INF)
oairecerif.author.affiliationInstitut für Informatik (INF)
oairecerif.author.affiliationInstitut für Informatik (INF)
oairecerif.author.affiliationInstitut für Informatik (INF)
unibe.contributor.rolecreator
unibe.contributor.rolecreator
unibe.contributor.rolecreator
unibe.contributor.rolecreator
unibe.date.licenseChanged2017-10-03 18:03:11
unibe.description.ispublishedpub
unibe.eprints.legacyId37137
unibe.refereedtrue
unibe.subtype.conferencepaper

Files

Original bundle
Now showing 1 - 1 of 1
Name:
04493303.pdf
Size:
319.49 KB
Format:
Adobe Portable Document Format
File Type:
text
License:
publisher
Content:
published

Collections