There is lots of existing code in the world that lacks unit tests. In this workshop you will learn a technique for quickly adding regression tests, and in what situations you can use it!
In this workshop you will learn some techniques for getting awkward code under test quickly. We will use the techniques on several exercises through the day. The presenter will show how to create a side-effect free test function, then use Combination Approvals to get 100% coverage of the code, and then Mutation testing to check the quality of the tests. The approach is a good way to get existing under code under test relatively quickly, in order to support refactoring and enhancements.
Everyone in the workshop will see and try out the Approval testing technique on several different problems, and learn about the strengths, weaknesses and applicability of the technique.
Planned learning outcomes:
- the three parts of an automated test case
- how to use Approval testing to find bugs in existing code
- how to use Approval testing to make Characterization tests for Legacy code
- differences in costs and benefits with Approval tests vs assertion-based tests
Suitable for: experienced developers and testers who do automation. Exercises are available in several programming languages, including Java and C#.
If you want to know more about this workshop or any other workshops or training sessions, feel free to contact [email protected].