- Returns:
- a new runner object
You should call
np_init
to initialise NovaProva before running any tests. It discovers tests in the current executable, and returns a pointer to a
np_runner_t
object which you can pass to
np_run_tests
to actually run the tests.
The first thing the function does is to ensure that the calling executable is running under Valgrind, which involves re-running the process. So be aware that any code between the start of main
and the call to np_init
will be run twice in two different processes, the second time under Valgrind.