Can I add extra tests to the C routines?
Posted by tonvoon on 29 September 2007 - 8:20pm
The idea with the testing is to move as many functions as possible "lower down", ie to the lib/utils_*.c files. These functions can then be tested using the libtap routines in the lib/tests/test_*.c files. It is easier to do unit testing here than to try and do higher level plugin testing, because you can fake data easier at this level.
The routines available via libtap are equivalent to perl's Test::Simple ones.
The libtap tests are separated out from the plugins ones (in plugins/t) because:
* it is testing the files in lib/, so should reside there
* it requires compiling to run
- Printer-friendly version
- Login or register to post comments