https://github.com/approvals/approvaltests.cpp.starterproject
Starter project for easy learning and use of ApprovalTests.cpp
https://github.com/approvals/approvaltests.cpp.starterproject
approval-test approval-testing c-plus-plus cpp11 example-project testing
Last synced: 10 months ago
JSON representation
Starter project for easy learning and use of ApprovalTests.cpp
- Host: GitHub
- URL: https://github.com/approvals/approvaltests.cpp.starterproject
- Owner: approvals
- Created: 2017-12-10T10:10:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-14T23:30:32.000Z (about 1 year ago)
- Last Synced: 2025-04-15T05:32:05.888Z (about 1 year ago)
- Topics: approval-test, approval-testing, c-plus-plus, cpp11, example-project, testing
- Language: C++
- Homepage:
- Size: 709 KB
- Stars: 12
- Watchers: 7
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ApprovalTests.cpp.StarterProject
[](../../actions/workflows/build-and-test-via-cmake.yml)
[](../../actions?query=branch%3Amaster+workflow%3Abuild_vs)
This is a starter project for:
* ApprovalTests in C++ - see [ApprovalTests.cpp](https://github.com/approvals/ApprovalTests.cpp)
* Catch2 test framework
* CLion (and any other CMake-aware C++ build system)
* Visual Studio 2017 (`visual-studio-2017\StarterProject.sln`)
* Visual Studio 2019 (`visual-studio-2019\StarterProject2019.sln`)
Works on Mac, Linux and Windows.
Feel free to copy and go...
## Machine Setup (Windows)
You can set up a machine from scratch by running the [PowerShell script: install.windows.ps1](install.windows.ps1). See the comments inside it for how to run it.
If you already have a Windows environment, but just not C++ tools, you can run the second half of that script.
## Starting Point
The tests in [NewTest](https://github.com/approvals/ApprovalTests.cpp.StarterProject/blob/master/tests/NewTest.cpp) should pass, and then you should delete/modify as needed to get started.
Notes:
* For more information, see the [ApprovalTests.cpp User Guide](https://github.com/approvals/ApprovalTests.cpp/blob/master/doc/README.md#top)
* You will need a Diff tool.
* Suggestions:
* Mac: [DiffMerge](https://sourcegear.com/diffmerge/)
* Windows: [WinMerge](winmerge.org/)
* Linux: [meld](http://meldmerge.org/)