In the previous recipe, we had a glimpse of what it takes to write simple tests with the Google Test framework. Multiple tests can be grouped into a test case and one or more test cases grouped into a test program. In this recipe, we will see how to create and run tests.
Writing and invoking tests with Google Test
Getting ready
For the sample code in this recipe, use the point3d class discussed in the Writing and invoking tests with Boost.Test recipe.Â
How to do it...
Use the following macros to create tests:
- TEST(TestCaseName, TestName) defines a test called TestName as part of a test case called TestCaseName...