ABSTRACT
Software testing has become popular in introductory courses, but many educators are unfamiliar with how to write software tests or how they might be used in the classroom. This workshop provides a practical introduction to JUnit for educators. JUnit is the Java testing framework that is most commonly used in the classroom. Participants will learn how to write and run JUnit test cases; how-to's for common classroom uses (as a behavioral addition to an assignment specification, as part of manual grading, as part of automated grading, as a student-written activity, etc.); and common solutions to tricky classroom problems (testing standard input/output, randomness, main programs, assignments with lots of design freedom, assertions, and code that calls exit()). Laptop recommended.
Index Terms
- The absolute beginner's guide to JUnit in the classroom (abstract only)
Recommendations
The absolute beginner's guide to JUnit in the classroom (abstract only)
SIGCSE '14: Proceedings of the 45th ACM technical symposium on Computer science educationSoftware testing has become popular in introductory courses, but many educators are unfamiliar with how to write software tests or how they might be used in the classroom. This workshop provides a practical introduction to JUnit for educators. JUnit is ...
A better API for Java reflection (abstract only)
SIGCSE '12: Proceedings of the 43rd ACM technical symposium on Computer Science EducationInstructors often write reference tests to evaluate student programs. In Java, reference tests should be independent of submitted solutions as they are run against all student submissions. Otherwise, they may even fail to compile against some solutions. ...
Running students' software tests against each others' code: new life for an old "gimmick"
SIGCSE '12: Proceedings of the 43rd ACM technical symposium on Computer Science EducationAt SIGCSE 2002, Michael Goldwasser suggested a strategy for adding software testing practices to programming courses by requiring students to turn in tests along with their solutions, and then running every student's tests against every other student's ...
Comments