There are three different places you might be starting your setup from.
Here's how to set up from:
If you just want to start doing some TDD with Approval Tests:
- download the ApprovalTests.cpp.StarterProject
- download a Supported Diff Tool
- Run the existing tests from the project (they should pass).
- Then open the file
tests/NewTest.cpp, choose which of the three starting points you want, and Go!
Then continue to the next section...
- Download the single header file
- Do one of:
- Add a wrapper header
- Rename the header file to
ApprovalTests.hpp(removing its version number)
- Set up your
main()(this is framework-dependent: - Download a Supported Diff Tool
If you current test framework is not supported, see Supporting a new test framework