Menu

#2778 First GoogleTest tests

Trunk
closed-accepted
None
5
2009-01-19
2009-01-13
Kimmo Varis
No

I played a bit with GoogleTest (http://code.google.com/p/googletest/) and created couple of simple unit tests.

Instructions for running:
1) get the latest GoogleTest from http://code.google.com/p/googletest/
2) Build the sources and copy gtest.lib file to some better place (than the build folder)

3) unzip attached test project to /Testing folder in WinMerge source tree. The project file is made for VS2003.

4) open the project with Visual Studio

5) set the library path so that gtest.lib file can be found:
- open project settings and set the "Additional library Directories" in Linker/General to point to path where gtest.lib is

6) build the project

7) open command prompt and go to Debug/Release subfolder (depending on which target you built)

8) run the Paths_test.exe

There should be 10 tests run successfully.

Discussion

  • Kimmo Varis

    Kimmo Varis - 2009-01-13

    GoogleTest unit testing project

     
  • Kimmo Varis

    Kimmo Varis - 2009-01-19
    • assigned_to: nobody --> kimmov
    • status: open --> closed-accepted
     
  • Kimmo Varis

    Kimmo Varis - 2009-01-19

    Committed to SVN with quick readme written to get people started with it.

    Completed: At revision: 6346

     

Log in to post a comment.