Join Simon Allardice for an in-depth discussion in this video Next steps, part of Foundations of Programming: Test-Driven Development.
- [Voiceover] While I've been keeping this course…as generic as I possibly can,…we can only apply these ideas in some specific language,…some specific environment.…So I'm going to cover a few resources for moving forward…using a particular language,…if you haven't already been doing that.…Now these recommendations, obviously, pale…into insignificance if you're working in an environment…that already has some test-driven development…or at least automated test processes in place.…So, getting started with Java.…Well with Java the 400 pound gorilla of unit testing…is still junit and junit.org has a very useful Wiki…and reference that really does cover almost…everything you would need on a day-to-day basis…when creating and using tests.…
It starts with things like quick references…for the available assertion methods.…With examples shown here with their optional…error messages that you can add.…There's information about test runners,…how to actually run these tests.…Although, if you're using most common IDEs…running your junit test is built directly into the program.…
The course explores the jargon of TDD—test suites, test harness, mock and stub objects, and more—and covers how TDD is used in the most common programming languages and environments. Plus learn to create, run, and manage the tests and move to a test-first mindset.
- What is test-driven development?
- Using unit testing frameworks
- Creating tests
- Using assertions
- Creating multiple test methods
- Naming unit tests and test methods
- Testing return values
- Setting up and tearing down
- Introducing mock objects
- Measuring code coverage