ApprovalTests for C++¶
ApprovalTests.cpp is a C++ implementation of Approval Tests.
Also known as Golden Master Tests or Snapshot Testing, Approval Tests are an alternative to asserts. They are great for testing objects with lots of fields, or lists of objects.
For releases and source code, see GitHub.
If you are new to Approval Tests, or to this C++ library, start here:
Approval Tests uses a test framework, in order to find out the names of tests and of source files. The test framework will also report errors for any failed Approval Tests.
Extending test framework support: Supporting a new test framework
Now that you are set up to run Approval Tests, this section describes how to test various types of complex objects, and how to do so effectively.
Summary: All Customizations of Approval Tests
Challenges: Multiple output files per test
This section contains a growing list of pages documenting the ApprovalTests.cpp API. It may be useful to see what methods, and overloads, are available. It is very short on descriptive text, as we focus our efforts on the documentation above.