Categories
October Surprise 2016

What is the difference between TEST, TEST_F and TEST_P?

The TEST_P macro is followed by a set of parameters that are passed to the test case. In summary, TEST is for standalone test cases, TEST_F is for test cases with fixtures, and TEST_P is for test cases with parameters. The choice of which macro to use depends on the specific testing needs and requirements of your project.