Browse Prior Art Database

Method and System for Generating Unit Tests from an Interactive Debugger

IP.com Disclosure Number: IPCOM000206340D
Publication Date: 2011-Apr-19
Document File: 3 page(s) / 207K

Publishing Venue

The IP.com Prior Art Database

Abstract

Disclosed is a process providing a capability for a developer to generate unit tests from an interactive development environment (IDE) debugger.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 51% of the total text.

Page 01 of 3

Method and System for Generating Unit Tests from an Interactive Debugger

Disclosed is a process providing a capability for a developer to generate unit tests from an interactive development environment (IDE) debugger. Code development using an IDE typically involves executing the code with a debugger. While debugging the code using an IDE, a developer may set breakpoints along various code paths to monitor behavior, inspect variable values, or a multitude of other debugging practices. Part of code development typically includes development of unit tests for example, JUnit, (available from www.JUnit.org) and HttpUnit, (available from httpunit.sourceforge.net). Development of the tests is typically a manual process involving a developer who tests conditions or creates scenarios to test resiliency of the developed code.

Code development with an IDE typically involves executing the code with a debugger. While debugging code through an IDE, a developer may set breakpoints along various code paths to monitor behavior, inspect variable values, or any number of other debugging practices. Code development typically includes development of unit tests created using methods including JUnit, HttpUnit techniques previously mentioned. Using an embodiment of the disclosed process enables a developer to generate unit tests from an IDE debugger.

Current solution for creating unit tests typically requires creating the unit tests manually.

The disclosed process enables developers to efficiently create accurate unit tests for code the developers are already debugging. Traditionally a developer creates the unit tests manually which incurs an associated set of problems including insufficient code coverage, the developer simply forgets, or the unit test is not a high priority therefore never performed. Using an embodiment of the disclosed process enables a user to create a unit test given the current program state from an interactive de...