As an experienced systems architect I am used to just starting at a running pace, with presetup systems working as planned and examples and demos that just work. I have had the need to go back to Cpp, and my memories are not fond from my CS degree.
I am working on a windows system. I tried installing many types and versions of cpp on this computer and they all had an issue and didnt want to work. I decided to default back to visual studio, and installed visual studio 2022.
I then looked for a testing framework that did not require an external package manager of submodaling a git (such as google tests). I found catch2.hpp as a single dependency and was very happy.
Here is how to run this simple testing:
-
clone the repo to your directory of choice
-
install visual studio 2022
-
open the extensions and install Catch2 Test Adapter extension
-
Go to [Test]->[Configure run Settings]->[Select Solutions Wide runsettings File] select test.runsettings located in test_project
-
Clean and Build the solution
-
Open test explorer and (hopefully) all the tests (6 tests) will appear there._