Session 7 - Test Drive Test-Driven Development
In this session, we'll look at the art of test-driven development (TDD). We'll start with a simple example and then extend the functionality using TDD. We'll also look at some best practices and tools to help you with TDD.
Objective
- Understand the concept of test-driven development
- Learn how to write tests in Rust
Non-Objective
Test Driven Development is not about code coverage. It is about writing tests that help you design your code. Good coverage is a side effect of TDD. I hope that by practicing TDD you will find that your code is better structured and easier to maintain.