About 17 minutes of video with Emily, in 9 short videos
Hands-on exercises, including a coding exercise
Reflection questions to make the learning stick
12 months of access
Unit test code is not usually shipped to the customer, and it often gets less care and attention than the code that is. In the organizations where I do technical coaching, I often notice that the design of test code is really quite bad. People spend way more time than they should trying to understand and fix broken tests.
There are some important design patterns for tests that aren't that difficult to use, and they can make a real difference to test readability. They can also save you time when your tests break.
In this short course you'll learn the most basic of them: every test has three parts, Arrange, Act and Assert.
You'll:
see how the three parts fit together in a simple test
label and rate four real-looking tests, and compare your answers with mine
watch me refactor a long, confusing test into three clear ones, and see how much easier the test failures are to understand afterwards
do the same refactoring yourself, on code you can download
The demo uses C#, but the exercise code is also available in Java, JavaScript, Python, C++ and Swift, and the ideas apply to unit tests in any language.
About 17 minutes of video with Emily, in 9 short videos
Hands-on exercises, including a coding exercise
Reflection questions to make the learning stick
12 months of access
Software developers who write unit tests, or are starting to. You should be able to read simple code in a C-like language (the examples are in C#).
No knowledge of any particular test framework is needed.
recognize a test written with the Arrange-Act-Assert pattern (AAA)
explain why the AAA pattern improves test maintainability
use the AAA pattern in an existing test case
split a long, confusing test into clear, focused tests

Emily is a technical coach with more than 25 years in software development. She founded the Samman method for technical coaching and wrote Technical Agile Coaching with the Samman Method and The Coding Dojo Handbook. She maintains popular refactoring katas, including Gilded Rose and Tennis, used by developers all over the world.
This course comes from the Guided Learning Hours she runs with development teams.
Want to run this course with your team?
Emily trains in-house trainers to facilitate her courses, and runs training with teams on site or remotely. Get in touch and tell us about your team.