On Mon, Jan 28, 2013 at 11:30 AM, <[email protected]> wrote: > Start to port CFC tests to C
> Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/3a9cef14 Wow... lots of progress! > http://git-wip-us.apache.org/repos/asf/lucy/blob/3a9cef14/clownfish/compiler/perl/t/core/001-util.t > +use strict; > +use warnings; > + > +use Clownfish::CFC::Test; > + > +my $test = Clownfish::CFC::Test->new; Nice to see us creating Test objects. :) Dreaming big dreams... I'd love to have a test harness that supported test classes like xUnit, but ran tests that don't throw exceptions, a la Perl tests instead of xUnit assertions. Most of the time, a failing test does not invalidate subsequent tests -- and having additional information from tests which either succeed or fail can be a big help when trying to debug a CPAN Testers report where you don't have access to the machine on which the tests ran. Oh, and tests would run idiomatically under at least Perl, Python and Ruby. :) > +$test->run_batch('Clownfish::CFC::Util'); > + One thing I've wanted to do for a while is have our C tests return true on success, false on failure, and then use that return value to determine the exit value for the test script. Right now our C-based test scripts still exit success even when some tests fail. Marvin Humphrey
