Learning objectives
- To become familiar with the basic terminology and concepts of testing, including verification, validation, black box testing, and white box testing.
- To gain experience with the JUnit testing tool and the Jacoco code coverage tool.
Resources
- Screencast: Introduction to Testing
- Screencast: JUnit and Jacoco for Robocode in Maven (watch in 1080p, large screen)
Unit Testing and JUnit
Note: You must use JUnit 4 in this class. That means do not extend TestCase, and do use @Test. However, the readings based on Junit 3.8 are still useful for more general testing and JUnit concepts.
- JUnit Cookbook (JUnit 4)
- Test Infected: Programmers Love Writing Tests (JUnit 3.8)
- JUnit Anti-Patterns (JUnit 3.8)
Coverage and Jacoco
- A buyer’s guide to code coverage terminology
- How to misuse code coverage
- Don’t be fooled by the coverage report
Concepts/Vocabulary: