3

Possible Duplicates:
C/C++ testing framework (like JUnit for java)
C++ unit testing framework

Which of these is a better option to choose for developing an Automated Test Framework which should be platform independent (Windows/Linux/Mac) ?

  1. CUnit
  2. Check
  3. Google test C++ Testing framework.

Or please feel free to suggest any other Testing Framework better than these satisfying the requirements.

Community
  • 1
  • 1
  • Or suggest any other Testing Framework better than these satisfying the requirements. – Ashish Gupta Apr 07 '11 at 09:18
  • possible duplicate of [C/C++ testing framework (like JUnit for java)](http://stackoverflow.com/questions/1067236/c-c-testing-framework-like-junit-for-java), [C++ unit testing framework](http://stackoverflow.com/questions/87794/c-unit-testing-framework) etc. – Péter Török Apr 07 '11 at 09:24
  • Check the SO post http://stackoverflow.com/questions/13699/choosing-a-c-unit-testing-tool-framework – Jhaliya - Praveen Sharma Apr 07 '11 at 09:25
  • For UnitTest++ go to github.com/unittest-cpp/unittest-cpp. Everything else is out of date. – Markus Sep 17 '13 at 11:34

4 Answers4

3

Consider using Boost.Test:

http://www.boost.org/doc/libs/1_46_1/libs/test/doc/html/index.html

RED SOFT ADAIR
  • 12,032
  • 10
  • 54
  • 92
2
  1. cxxtest
  2. cpptest
BЈовић
  • 62,405
  • 41
  • 173
  • 273
1

CTest? It is part of CMake.

Naszta
  • 7,560
  • 2
  • 33
  • 49
  • 1
    CTest won't do it alone as it seems. CTest is part of CMake which can be used as a cross platform build tool. It also includes CPack which one can use for cross platform installer generators. You can also integrate CTest with CDash, a software testing server. – trenki Apr 07 '11 at 09:34
0

Are you looking for a unit testing framework? If yes, you should check out CPPUnit.