skip to main content
10.1145/1328279.1328285acmconferencesArticle/Chapter ViewAbstractPublication PagessplashConference Proceedingsconference-collections
research-article

UnitPlus: assisting developer testing in Eclipse

Published:21 October 2007Publication History

ABSTRACT

In the software development life cycle, unit testing is an important phase that helps in early detection of bugs. A unit test case consists of two parts: a test input, which is often a sequence of method calls, and a test oracle, which is often in the form of assertions. The effectiveness of a unit test case depends on its test input as well as its test oracle because the test oracle helps in exposing bugs during the execution of the test input. The task of writing effective test oracles is not trivial as this task requires domain or application knowledge and also needs knowledge of the intricate details of the class under test. In addition, when developers write new unit test cases, much test code (including code in test inputs or oracles) such as method argument values is the same as some previously written test code. To assist developers in writing test code in unit test cases more efficiently, we have developed an Eclipse plugin for JUnit test cases, called UnitPlus, that runs in the background and recommends test-code pieces for developers to choose (and revise when needed) to put in test oracles or test inputs. The recommendation is based on static analysis of the class under test and already written unit test cases. We have conducted a feasibility study for our UnitPlus plugin with four Java libraries to demonstrate its potential utility.

References

  1. M. Aeschlimann, D. Baumer, and J. Lanneluc. Java tool smithing extending the Eclipse Java development tools. In Proc. EclipseCon, Tutorial, 2005.Google ScholarGoogle Scholar
  2. M. Amorim, C. Pacheco, T. Xie, D. Marinov, and M. Ernst. An empirical comparison of automated generation and classification techniques for object-oriented unit testing. In Proc. 21st International Conference on Automated Software Engineering, pages 59--68, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. S. Ananian. FLEX compiler infrastructure for Java, 2003. http://cycleserv2.csail.mit.edu/Harpoon.Google ScholarGoogle Scholar
  4. B. Rompaey, B. Bois, and S. Demeyer. Characterizing the relative significance of a test smell. In Proc. 22nd International Conference on Software Maintenance, pages 391--400, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. V. Wahler, C. Walton, P. Ombredanne, and C. Jones. moreUnit, 2007. http://moreunit.sourceforge.net.Google ScholarGoogle Scholar
  6. T. Xie. Augmenting automatically generated unit-test suites with regression oracle checking. In Proc. 20th European Conference on Object-Oriented Programming, pages 380--403, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. UnitPlus: assisting developer testing in Eclipse

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      eclipse '07: Proceedings of the 2007 OOPSLA workshop on eclipse technology eXchange
      October 2007
      79 pages
      ISBN:9781605580159
      DOI:10.1145/1328279

      Copyright © 2007 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 21 October 2007

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      Overall Acceptance Rate38of79submissions,48%

      Upcoming Conference

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader