Anja wrote:
I have a question about the Cxxtest framework which I am considering
using for all my C++ unit testing needs.
Please use UnitTest++; it's much better.
I am wondering if it is possible to configure the framework so that
the output of all the tests go into a file rather than the standard
output. I did not see any flag that lets you do something like that
and searching the net did not yield any clues either.
The best way to use such a framework is with zero-tolerance for faults. When
you edit you should configure your editor to run all the tests from one
(unshifted) button, and you should run all the tests in your current module
after every few edits.
When you commit code to a repository, you should only commit if all tests
pass. If tests fail unexpectedly, you should revert your code until they
pass, and start your current effort again. This is much MUCH more productive
than traditional hack-n-slash debugging.
This is why few test runners have excessive (JUnit-style) support for
coddling errors, or listing them, or reporting them. At the very least your
editor should treat failures as syntax errors, and offer the option to
navigate to the failure easily.
So, I am wondering if anyone who has used the framework before can
help me with this.
Try its mailing list. I know UnitTest++ has the option.
--
Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!