Presented at CppEurope Online on 23 June 2020.
This talk, which was mostly live demos, covered aspects such as:
- Formatting options, to ensure failures are really easy to understand and act on
- An example of when a growing number of unit tests turns out easier to maintain with Approvals
- Different reports, and how to use them well
- Dealing with timestamps or dates (for example in logs)
- Dealing with external resources: I/O, networking, system API calls, etc.
- Dealing with multiple processes or threads
- Can I use approvals for the cases when RAM is low? Eg. an embedded controller that has 1MB of RAM
Links from the talk, including to the demo code, are available at:
https://github.com/claremacrae/talks/blob/main/How_to_use_Approval_Tests_for_C++_Effectively.md#top