Using Cu Te

Writing Tests

1 include ASSERT-macros:

 #include "cute.h"

2 code your test functions or functors

see CuTe for details

3 collect your tests in a cute::test_suite

    cute::test_suite s;

Running Tests

You need to provide a main()-function for running your tests.

0 include the necessary infrastructure
#include "cute_runner.h"
#include "cute_counting_listener.h"
#include "vstudio_listener.h"

1 instantiate a Runner with an appropriate Listener
    runner<counting_listener<vstudio_listener> > run;
2 pass your test_suite to the runner for running them
    run(s);

observe the outcome...

Extending CuTe

Todos for CuTe

Last edited March 22, 2011