4. Previously, on JetBrains Webinars…
“Before we start refactoring,
we want to add tests”
“The tests are green, so we
can start refactoring”
“What if we don’t have
tests?”
“It’s a pre-requisite for
any refactoring”
4
6. Goals
Add tests for untested
code, quickly and safely
01
Show the power of
Approval Tests to get
good coverage quickly
& explore the code
02
Use Code Coverage
tools in CLion to guide
your testing
03
6
11. Approval Tests allow you to
verify a chunk of output (such
as a file) in one operation as
opposed to writing test
assertions for each element
11
12. Approval Tests overview
12
The Power of Approval Tests:
Simple to use
File naming and
creation
See failures
Updating
expected output
It just works!
Roll your own?