cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Unittesting in cpp Visual studio
Unittesting in cpp Visual studio
Jul 15, 2020 at 7:23am UTC
Shruthi LS
(55)
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,
Jul 15, 2020 at 7:35am UTC
salem c
(3700)
A brief search of the interwebs reveals
https://en.wikipedia.org/wiki/List_of_unit_testing_frameworks
Jul 15, 2020 at 7:48am UTC
andywestken
(4094)
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
Jul 15, 2020 at 7:58am UTC
Jul 17, 2020 at 12:03pm UTC
Shruthi LS
(55)
@andywestken Thank you for your post.
Jul 17, 2020 at 3:26pm UTC
Thomas1965
(4571)
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.