skip to main content
article

Using testing and JUnit across the curriculum

Published: 23 February 2005 Publication History

Abstract

While the usage of unit-testing frameworks such as JUnit has greatly increased over the last several years, it is not immediately apparent to students and instructors how to best use tools like JUnit and how to integrate testing across a computer science curriculum. We have worked over the last four semesters to infuse testing and JUnit across our curriculum, building from having students use JUnit to having them write their own test cases to building larger integration and use case testing systems to studying JUnit as an example of good application of design patterns. We have found that, based on this increased presentation and structuring of the usage of JUnit and testing, students have an increased understanding and appreciation of the overall value of testing in software development.

References

[1]
Bertolino, A. and Gnesi, S., "Use Case-based Testing of Product Lines,", Poster Session from the Proceedings of the 9th European software engineering conference held jointly with 10th ACM SIGSOFT international symposium on Foundations of software engineering, Helsinki, Finland, 2003, pp. 355--358.
[2]
Gamma, Erich, Helm, Richard, Johnson, Ralph, Vlissides, John, "Design Patterns: Elements of Reusable Object-Oriented Software", Addison-Wesley, 1995.
[3]
JUnit: A Cook's Tour, http://junit.sourceforge.net/doc/cookstour/cookstour.htm
[4]
JUnit Best Practices, http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-ju it.html
[5]
JUnit Cookbook, http://junit.sourceforge.net/doc/cookbook/cookbook.htm
[6]
JUnit Home Page, http://junit.sourceforge.net
[7]
Link, Johannes; "Unit Testing in Java: How Tests Drive the Code", Morgan Kaufman, 2003.
[8]
Massol, Vincent, with Husted, Ted; "JUnit in Action", Manning Press, 2004.
[9]
Olan, Michael, "Unit Testing: Test Early, Test Often", Journal of Computing in Small Colleges, v. 19, n. 2, Dec 2003, pp. 319--328.
[10]
Patterson, Andrew, Kolling, Michael, Roseberg, John, "Introducing Unit Testing with BlueJ"; SIGCSE Bulletin: Proc. 8th Annual SIGCSE Conference on Innovation and Technology in Computer Science Education, v.35, n.3, September 2003, pp. 11--15.
[11]
Rainsberger, J.B., Sterling, Scott; "JUnit Recipes: Practical Methods for Programmer Testing", Manning Press, 2004.

Cited By

View all
  • (2023)Concept-Based Automated Grading of CS-1 Programming AssignmentsProceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis10.1145/3597926.3598049(199-210)Online publication date: 12-Jul-2023
  • (2023)Programming Assignment Grading Through Control Statement and Program Features2023 International Conference on Emerging Techniques in Computational Intelligence (ICETCI)10.1109/ICETCI58599.2023.10331134(122-129)Online publication date: 21-Sep-2023
  • (2022)LetGrade: An Automated Grading System for Programming AssignmentsArtificial Intelligence in Education. Posters and Late Breaking Results, Workshops and Tutorials, Industry and Innovation Tracks, Practitioners’ and Doctoral Consortium10.1007/978-3-031-11647-6_75(383-386)Online publication date: 27-Jul-2022
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGCSE Bulletin
ACM SIGCSE Bulletin  Volume 37, Issue 1
2005
562 pages
ISSN:0097-8418
DOI:10.1145/1047124
Issue’s Table of Contents
  • cover image ACM Conferences
    SIGCSE '05: Proceedings of the 36th SIGCSE technical symposium on Computer science education
    February 2005
    610 pages
    ISBN:1581139977
    DOI:10.1145/1047344
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: 23 February 2005
Published in SIGCSE Volume 37, Issue 1

Check for updates

Author Tags

  1. JUnit
  2. testing
  3. unit testing
  4. unit testing frameworks

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)12
  • Downloads (Last 6 weeks)1
Reflects downloads up to 07 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2023)Concept-Based Automated Grading of CS-1 Programming AssignmentsProceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis10.1145/3597926.3598049(199-210)Online publication date: 12-Jul-2023
  • (2023)Programming Assignment Grading Through Control Statement and Program Features2023 International Conference on Emerging Techniques in Computational Intelligence (ICETCI)10.1109/ICETCI58599.2023.10331134(122-129)Online publication date: 21-Sep-2023
  • (2022)LetGrade: An Automated Grading System for Programming AssignmentsArtificial Intelligence in Education. Posters and Late Breaking Results, Workshops and Tutorials, Industry and Innovation Tracks, Practitioners’ and Doctoral Consortium10.1007/978-3-031-11647-6_75(383-386)Online publication date: 27-Jul-2022
  • (2021)Automated Student Code Scoring by Analyzing Grammatical and Semantic Information of Code2021 16th International Conference on Computer Science & Education (ICCSE)10.1109/ICCSE51940.2021.9569318(963-968)Online publication date: 17-Aug-2021
  • (2018)The effect of automatic assessment on novice programming: Strengths and limitations of existing systemsComputer Applications in Engineering Education10.1002/cae.2197426:6(2328-2341)Online publication date: 29-May-2018
  • (2015)Proposed framework for automatic grading system of ER diagram2015 7th International Conference on Information Technology and Electrical Engineering (ICITEE)10.1109/ICITEED.2015.7408930(141-146)Online publication date: Oct-2015
  • (2014)A system to grade computer programming skills using machine learningProceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining10.1145/2623330.2623377(1887-1896)Online publication date: 24-Aug-2014
  • (2013)Feedback for Programming Assignments Using Software-Metrics and Reference CodeISRN Software Engineering10.1155/2013/8059632013(1-8)Online publication date: 2013
  • (2013)Automatic Grading of Computer ProgramsProceedings of the 2013 12th International Conference on Machine Learning and Applications - Volume 0110.1109/ICMLA.2013.22(85-92)Online publication date: 4-Dec-2013
  • (2013)Software verification and graph similarity for automated evaluation of students' assignmentsInformation and Software Technology10.1016/j.infsof.2012.12.00555:6(1004-1016)Online publication date: 1-Jun-2013
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media