I've recorded a video to show how to configure Visual Studio 2013 Ultimate project to work with googlemock:
Record of experiments, readings, links, videos and other things that I find on the long road.
Registro de experimentos, lecturas, links, vídeos y otras cosas que voy encontrando en el largo camino.
Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts
Thursday, February 27, 2014
Friday, February 21, 2014
Building GoogleMock to use it with Visual Studio 2013 Ultimate
This post explains how to build GoogleMock to use it with Visual Studio 2013 Ultimate.
First download the last version (1.7.0 when I wrote this) of GoogleMock from the GoogleMock download list.
Then extract the content of the downloaded zip on a folder of your choice. I did it inside c:\src\
Now use Windows Explorer to enter into the msvc\2010\ folder under the gmock-1.7.0 folder. There you'll find a solution file called gmock.sln, open it with Visual Studio 2013 Ultimate.
Since this solution was created with Visual Studio 10, Visual Studio 2013 will ask you to upgrade all the project files within the solution. Click Ok.
Then you'll probably see this message:
This happens because the project files have read-only permissions.
Select the Make Writable option for each of the three project files.
Once the solution is open, you'l see three projects inside the solution:
Build the solution in Debug Version pressing F7 and ignore all the warnings.
Once built, to check that everything is ok, go to the Debug folder under msvc\2010\ the you'l find an executable file called gmock_test.exe which runs the tests for the googlemock code.
Open a command line prompt, go to the Debug folder and run the tests.
You should see that all of them pass.
First download the last version (1.7.0 when I wrote this) of GoogleMock from the GoogleMock download list.
Then extract the content of the downloaded zip on a folder of your choice. I did it inside c:\src\
Now use Windows Explorer to enter into the msvc\2010\ folder under the gmock-1.7.0 folder. There you'll find a solution file called gmock.sln, open it with Visual Studio 2013 Ultimate.
Since this solution was created with Visual Studio 10, Visual Studio 2013 will ask you to upgrade all the project files within the solution. Click Ok.
Then you'll probably see this message:
This happens because the project files have read-only permissions.
Select the Make Writable option for each of the three project files.
Once the solution is open, you'l see three projects inside the solution:
- gmock
- gmock_main
- gmock_test
Build the solution in Debug Version pressing F7 and ignore all the warnings.
Once built, to check that everything is ok, go to the Debug folder under msvc\2010\ the you'l find an executable file called gmock_test.exe which runs the tests for the googlemock code.
Open a command line prompt, go to the Debug folder and run the tests.
You should see that all of them pass.
Subscribe to:
Posts (Atom)