Test++
Test++ is a C++ unit testing library, framework, and CLI tool. It is available for download and installation on MacOS (most supported), Windows (medium support), and Linux (least supported). Because its development was largely done on MacOS, its usage on Windows and Linux systems is largely untested. It is currently being tested for compilation and running on Windows. It is built using C++20. Using Test++ with other C++ standard-specific code is largely untested. Because it's a CLI tool, it is not header-only, however, its CLI usage makes writing tests just as easy as a header-only library. The CLI tool handles compilation and running for you.
Changes
Here are the changes that have been made in the latest version of Test++
- Test++ can now be compiled, installed, and ran on Windows. Updating to the latest version for Mac users is unnecessary because this release does not affect the Mac build.
Credits
Developer: Oliver Lie
Support the Development
Here is how you can support the development of Test++:
1. Suggest a Feature
Suggesting a feature such as CLI improvements, new testing options, and language support would be amazing as it helps guide the development into something more people can find enjoyment in.
2. Try It Out and Review It
Using Test++ in your own projects and finding bugs/errors would be amazing. It is already used in Krystal's C++ projects, however, we don't have much testing on other operating systems other than that it compiles. If you were to try it on Windows and Linux and then tell us about your experience, it would be greatly appreciated.
3. Financial Support
Supporting the Test++ development monetarily helps the development greatly. It would allow us to use it and try it out on a larger range of devices so we can be more proactive in its development.
Installation Instructions
Prerequisites: CMakeHomebrew (Preferred)
Prerequisites: HomebrewYou can install Test++ view Homebrew if your system supports Homebrew. Running the following commands will install Test++ onto your system:
brew trust olie-ver/testpp brew tap olie-ver/testppbrew install testppAfter this you can start using the testpp command immediately without needing to register the path to the Test++ executable. To uninstall, run:
brew uninstall testppManual Installation (Mac)
Manually installing Test++ onto your system requires slightly more setup. Download the latest version of Test++here.Extract the contents of the .zip file. Next, open a terminal in the root folder of the extracted files, then run the following commands:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Releasecmake --build build --parallelsudo cmake --install buildThen to register the testpp command in your system, you can run:
echo 'export PATH="$HOME/testpp-install/bin:$PATH"' >> ~/.zshrcManual Installation (Windows)
Manually installing Test++ onto your system requires slightly more setup. Download the latest version of Test++here.Extract the contents of the .zip file. Next, open a terminal in the root folder of the extracted files, then run the following commands:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Releasecmake --build build --parallel --config Releasesudo cmake --install build --config ReleaseThen to register the testpp command in your system:
For Windows, you can register the `testpp` command by going to your Environment Variables, finding the PATH variable and then adding in a new environment variable to `C:\Program Files (x86)\testpp\bin`.
Uninstallation will require you to find the testpp folder in your installation root and manually deleting it.
Downloads
Current and Old Versions of Test++