--shape=[circle, rectangle, triangle] [int values]
example:
--shape=circle [radius_int_value]
--shape=rectangle [a_int_value] [b_int_value]
--shape=triangle [a_int_value] [h_int_value]
- create
build
dir - exec from build dir
cmake ..
cmake --build .
ormake
- from VSCode Command Palette
CMake: Run Tests
or from terminalCTest
- check compiled program
./my_program
Since gtest is intended for testing libraries (we cannot test code from an executable project). Then all the methods for the application were moved to the example_lib library.
gtest_force_shared_crt - googletest variable (check it in CMakeCache)
run one of tests (not working for me on mac):
./test/ExampleTests --gtest_filter=ExampleTests2*