- Notifications
You must be signed in to change notification settings - Fork54
Native ApprovalTests for C++ on Linux, Mac and Windows
License
approvals/ApprovalTests.cpp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
⬇️Download the latest version (v.10.13.0) of thesingle header file here.
Also known asGolden Master Tests orSnapshot Testing, Approval Tests are an alternative to asserts. If you are unfamiliar with them, we have anoverview and atutorial.
They are great for testing objects with lots of fields, or lists of objects.
- C++11 (or above) compiler
- Mac/Linux/Windows
- One of:GoogleTest,Catch2,CppUTest,doctest,Boost.Test,[Boost].UT
- DownloadThe Approval.cpp Starter Project
- Read theGetting Started page
- Set up your main file.
- Read theUser Guide on Read the Docs oron GitHub.
- Watch theVideos
Often, you will need to create functions to allow objects to print their state. This is commonly done with an ostream<< operator.You can find examples here:To String
Check out theFeatures page orupcoming release notes to see what we've been working on lately, or browse thepast release notes.
If you have any comment or suggestion on this documentation, please email Llewellyn or Clare via the details in theContributing page.
About
Native ApprovalTests for C++ on Linux, Mac and Windows
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.