Unittesting in cpp Visual studio

Hi Everyone,

What are the frameworks available for unit testing in c++ visual studio. Please share the related documents or links available for the same.

Thank you,

A brief search of the interwebs reveals
https://en.wikipedia.org/wiki/List_of_unit_testing_frameworks

Four C/C++ unit testing frameworks are provided with newer versions of Visual Studio:

* Microsoft Unit Testing Framework for C++
* Google Test
* Boost.Test
* CTest -- this is for C code

Write unit tests for C/C++ in Visual Studio
https://docs.microsoft.com/en-us/visualstudio/test/writing-unit-tests-for-c-cpp?view=vs-2019

Feature comparison table:

C++ unit testing framework
https://socialcompare.com/en/comparison/c-unit-testing-framework

Further discussion:

Comparison of C++ unit test frameworks
https://stackoverflow.com/questions/242926/comparison-of-c-unit-test-frameworks

Regards

Andy

PS We use Google Test
Last edited on
@andywestken Thank you for your post.
I find that the easiest to use are catch2 and doctest - just 1 header to include.
https://github.com/onqtam/doctest
https://github.com/catchorg/Catch2
Topic archived. No new replies allowed.