#75 Add unit testing support

Next_Release
closed
itpp (51)
4
2013-05-24
2010-12-03
No

Currently the unit testing support in IT++ is primitive and uses ref files. This approach poses problems when IT++ is run on different platform and is quite inefficient when writing unit tests. A better approach would be to use a unit testing framework for C++ (e.g gtest: http://code.google.com/p/googletest/)

Discussion

  • Robert Orzechowski

    Hi,

    This is actually a very good idea.
    However I prefer CPPUnit: http://cppunit.sourceforge.net/doc/lastest/index.html. It is very flexible, because the component tests could be also done using CPPUnit (not only unit tests).
    Let me know what do you think ?

    regards,
    Robert

     
  • Bogdan Cristea

    Bogdan Cristea - 2010-12-04

    Hi
    I had a look at CppUnit. In my opinion the main advantage would be that CppUnit is already included as package by many Linux distros. As a drawback I see its complexity, which makes gtest easier to use.
    However, if you choose CppUnit in order to implement unit testing in IT++, that's ok for me. I'll try to help you as much as I can.
    regards
    Bogdan

     
  • Bogdan Cristea

    Bogdan Cristea - 2012-09-12

    cmake_gtest branch has been merged into trunk. Thus unit tests can now be written using Google framework. Old unit tests are still in place, but they need to be ported to the new framework.

     
  • Bogdan Cristea

    Bogdan Cristea - 2013-05-22

    Finished to port all unit tests to Google framework. Tests made on openSUSE and Windows with Visual Studio 2010. More tests on the supported platforms (e.g. Windows with cygwin/mingw needed).

     
  • Bogdan Cristea

    Bogdan Cristea - 2013-05-22
    • status: open --> accepted
     
  • Bogdan Cristea

    Bogdan Cristea - 2013-05-24
    • status: accepted --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks