Skip to content

Ed-Yang/gturtle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google GMock Sample

Reference

Build

Windows

mkdir build
cd build
cmake -G "NMake Makefiles" ..
nmake

Linux/macOS

mkdir build
cd build
# clear last build, do this only on needs
rm -rf *
cmake ..
make

Run

cd tests
test_turtle

[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from PainterTest
[ RUN      ] PainterTest.CanDrawSomething
[       OK ] PainterTest.CanDrawSomething (0 ms)
[----------] 1 test from PainterTest (1 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (2 ms total)
[  PASSED  ] 1 test.

Comment

There is one problem while building the Googletest in the same repository. If the source code of Googletest is changed and got problems, then you have to "fix" it and then can run the tests.

Maybe, it is needed to consider to put the Googletest in a external folder and update it by needs.

About

Google's GMock test sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published