An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# ApprovalTests.cpp.StarterProject

[![build](../../actions/workflows/build-and-test-via-cmake.yml/badge.svg)](../../actions/workflows/build-and-test-via-cmake.yml)
[![Build Status](../../workflows/build_vs/badge.svg?branch=master)](../../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/)