• Home
  • Search
  • Obsidian: Pattern-Based Unit Test Implementations
  • Cite Icon1
  • https://doi.org/10.4236/jsea.2014.72011Copy DOI Icon

Obsidian: Pattern-Based Unit Test Implementations

Show More
  • Abstract
  • Highlights & Summary
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

There exist many automated unit test-generator tools for Java with the primary task of generating test cases, comprised of inputs and a corresponding oracle, each of which is explicitly paired with a specific supporting test implementation. The authors posit that this explicit pairing, or conflating, of test implementation with test case is unnecessary and counter-productive. The authors address this problem by separating the conflated concerns into two distinct tasks: 1) instantiating test implementations and 2) instantiating test cases. This paper focuses on automating the first task in support of the second with the goal of freeing the test engineer to concentrate on test case instantiation. The authors present a new open-source test-preparation tool Obsidian that produces robust, comprehensive, and maintainable unit test implementations. Obsidian, built on the JUnit framework, uses a set of context patterns and associated algorithms combined with information from the Java Reflection API to generate these unit test implementations from Java byte code. These context patterns guide Obsidian to prepare test implementations that guarantee compilation, support exception handling, enable multiple test cases when required, and provide a suitable location for assertions about the test case outcome(s). Obsidian supports regression testing and test-driven development through its novel audits of the testing process.

Loading PDF

Similar Papers
  • Book Chapter
  • Citations3

Test-Driven Web Application Development in Java

  • Jan 01, 2003
  • Jens Uwe Pipka
  • Conference Article
  • Citations29

On the effectiveness of unit tests in test-driven development

  • May 26, 2018
  • Ayse Tosun +3
  • Conference Article
  • Citations11

A Strategy to Combine Test-Driven Development and Test Criteria to Improve Learning of Programming Skills

  • Feb 17, 2016
  • Bruno Henrique Pachulski Camara +1
  • Conference Article
  • Citations159

An initial investigation of test driven development in industry

  • Mar 09, 2003
  • Boby George +1
  • Research Article
  • Citations7

Designing multi-agent unit tests using systematic test design patterns-(extended version)

  • May 20, 2013
  • Engineering Applications of Artificial Intelligence
  • Mohamed A Khamis +1
  • Research Article
  • Citations206

A structured experiment of test-driven development

  • Oct 27, 2003
  • Information and Software Technology
  • Boby George +1
  • Book Chapter
  • Citations2

Test First, Code Later: Educating for Test Driven Development

  • Jan 01, 2018
  • Naomi Unkelos-Shpigel +1
  • Book Chapter
  • Citations2

A Metric-Based Approach to Assess Class Testability

  • Jan 01, 2008
  • Yogesh Singh +1
  • Conference Article
  • Citations6

English

  • Jan 01, 2014
  • Bernhard K Aichernig +2
  • Research Article
  • Citations3

Automatically Tagging the “AAA” Pattern in Unit Test Cases Using Machine Learning Models

  • May 01, 2023
  • IEEE Transactions on Software Engineering
  • Chenhao Wei +6
  • Book Chapter
  • Citations44

Minimal Effort Requirements Engineering for Robotic Process Automation with Test Driven Development and Screen Recording

  • Jan 01, 2018
  • Christoph Cewe +2
  • Book Chapter
  • Citations12

Impact of Test Design Technique Knowledge on Test Driven Development: A Controlled Experiment

  • Jan 01, 2012
  • Adnan Čaušević +2
  • Conference Article
  • Citations8

Testing meets static and runtime verification

  • Jun 02, 2018
  • Jesús Mauricio Chimento +2
  • Conference Article
  • Citations1

UTGen: A Black-Box Method-Level Unit-Test Generator for JUnit Test-Platform

  • Jul 01, 2015
  • Chi-Kuang Chang +1
  • Conference Article
  • Citations25

Quality of Testing in Test Driven Development

  • Jan 01, 2012
  • Adnan Cauevic +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.