Tutorial by Examples

Google Test is a C++ testing framework maintained by Google. It requires building the gtest library and linking it to your testing framework when building a test case file. Minimal Example // main.cpp #include <gtest/gtest.h> #include <iostream> // Google Test test cases are cre...
Catch is a header only library that allows you to use both TDD and BDD unit test style. The following snippet is from the Catch documentation page at this link: SCENARIO( "vectors can be sized and resized", "[vector]" ) { GIVEN( "A vector with some items" ) { std::vector v( 5 ); ...

Page 1 of 1