skip to main content
10.1145/2676723.2677228acmconferencesArticle/Chapter ViewAbstractPublication PagessigcseConference Proceedingsconference-collections
research-article

Unci: a C++-based Unit-testing Framework for Intro Students

Published:24 February 2015Publication History

ABSTRACT

This paper describes Unci, a unit-testing language with a clean and minimal interface suitable for introducing beginning programming students to the ideas of unit testing and test-driven development. We detail why CppUnit, a common C++-based unit-testing framework, is not well-suited for beginners, and present Unci and explain how it addresses the weaknesses of CppUnit. Finally, we present a comparison of CS2 student performance in the two systems, showing that moving from CppUnit to Unci resulted in an approximate doubling in the proportion of students able to write an effective test suite for a lab assignment.

References

  1. K. Beck. Test-driven development: by example. Addison-Wesley, Boston, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. CppUnit. Retrieved November 30, 2014 from http://freedesktop.org/wiki/Software/cppunit/.Google ScholarGoogle Scholar
  3. CxxTest. Retrieved November 30, 2014 from http://cxxtest.com.Google ScholarGoogle Scholar
  4. S. H. Edwards. Rethinking computer science education from a test-first perspective. In OOPSLA'03, Anaheim, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. S. Hammond and D. Umphress. Test driven development: The state of the practice. In ACMSE'12, Tuscaloosa, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. D. S. Janzen and H. Saiedian. Test-driven learning: intrinsic integration of testing into the CS/SE curriculum. In SIGCSE'06, Houston, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. D. S. Janzen and H. Saiedian. Test-driven learning in early programming courses. In SIGCSE'08, Portland, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. JUnit. Retrieved November 30, 2014 from http://junit.org.Google ScholarGoogle Scholar
  9. libunittest. Retrieved November 30, 2014 from http://libunittest.sourceforge.net.Google ScholarGoogle Scholar
  10. V. K. Proulx. Test-driven design for introductory OO programming. In SIGCSE'09, Chattanooga, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. V. K. Proulx. Introductory computing: The design discipline. In I. Kala\vs and R. Mittermeir, editors, Informatics in Schools. Contributing to 21st Century Education, volume 7013 of Lecture Notes in Computer Science, pages 177--188. Springer Berlin Heidelberg, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Unit++ . Retrieved November 30, 2014 from http://unitpp.sourceforge.net/.Google ScholarGoogle Scholar
  13. UnitTest++. Retrieved November 30, 2014 from http://unittest-cpp.sourceforge.net.Google ScholarGoogle Scholar
  14. xUnit++. Retrieved November 30, 2014 from https://bitbucket.org/moswald/xunit.Google ScholarGoogle Scholar

Index Terms

  1. Unci: a C++-based Unit-testing Framework for Intro Students

      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
        SIGCSE '15: Proceedings of the 46th ACM Technical Symposium on Computer Science Education
        February 2015
        766 pages
        ISBN:9781450329668
        DOI:10.1145/2676723

        Copyright © 2015 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 the author(s) 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: 24 February 2015

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        SIGCSE '15 Paper Acceptance Rate105of289submissions,36%Overall Acceptance Rate1,595of4,542submissions,35%

        Upcoming Conference

        SIGCSE Virtual 2024
        SIGCSE Virtual 2024: ACM Virtual Global Computing Education Conference
        November 30 - December 1, 2024
        Virtual Event , USA

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader