xlnt/third-party/cxxtest
2017-03-11 14:13:23 -05:00
..
admin add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
bin add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
build_tools add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
cxxtest recommit the cxxtest headers 2017-03-11 14:13:23 -05:00
doc add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
python add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
sample add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
test add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
CMakeLists.txt add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
COPYING add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
README add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00
Versions add cxxtest to the source tree, external depepdencies are giving me a headache 2017-03-11 14:05:50 -05:00

Overview
--------

CxxTest is a unit testing framework for C++ that is similar in
spirit to JUnit, CppUnit, and xUnit. CxxTest is easy to use because
it does not require precompiling a CxxTest testing library, it
employs no advanced features of C++ (e.g. RTTI) and it supports a
very flexible form of test discovery.

CxxTest is available under the GNU Lesser General Public Licence (LGPL).

A user guide can be downloaded from http://cxxtest.com.


A Simple Example
----------------

1. Create a test suite header file:

MyTestSuite.h:

  #include <cxxtest/TestSuite.h>

  class MyTestSuite : public CxxTest::TestSuite 
  {
  public:
      void testAddition( void )
      {
          TS_ASSERT( 1 + 1 > 1 );
          TS_ASSERT_EQUALS( 1 + 1, 2 );
      }
  };


2. Generate the tests file:

 # cxxtestgen --error-printer -o tests.cpp MyTestSuite.h

3. Compile and run!

  # g++ -o main tests.cpp
  # ./main
  Running cxxtest tests (1 test).OK!