Using Cu Te
|home |print view |recent changes |changed March 22, 2011 |
exact
|You are 54.166.123.247 <- set your identity!
go to start recent
changes

Sections: Writing Tests | 1 include ASSERT-macros: | 2 code your test functions or functors | 3 collect your tests in a cute::test_suite | Running Tests | 0 include the necessary infrastructure | 1 instantiate a Runner with an appropriate Listener | 2 pass your test_suite to the runner for running them | Extending CuTe | Todos for CuTe |

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 go to start recent
changes