Apply capture/replay to xunit testing

Yung Pin Cheng, Chen Wei Fan

Research output: Contribution to journalArticlepeer-review

Abstract

Adopting xUnit testing framework in software development often requires a lot of refactoring to the system under test (SUT). Contrast to system testing which can be performed by tools, xUnit testing is a coding activity which produces test code as the delivery. Test code, unfortunately, is subject to the maintenance problems like system code. In this paper, a prototype tool called CRUnit is proposed to alleviate the test overhead from adopting xUnit testing framework. CRUnit is a JUnit add-on, which can replace the hand-crafted assertions by a Capture/Replay process with the help from debuggers. Contrast to xUnit testing framework that treats a SUT as a blackbox, CRUnit probes the internal states of a SUT so that complicated hand-crafted assertions are no longer needed from test methods. This semi-automated process is achieved by introducing the verification power of human brain and human eyes with the help from "visualizers".

Original languageEnglish
Pages (from-to)349-356
Number of pages8
JournalICIC Express Letters, Part B: Applications
Volume5
Issue number2
StatePublished - 2014

Keywords

  • Capture/replay testing
  • Debugger
  • Xunit testing

Fingerprint

Dive into the research topics of 'Apply capture/replay to xunit testing'. Together they form a unique fingerprint.

Cite this