jf-unittest 1.0.1

jf-unittest is a C++ unit test framework, modeled after the way I use the Python unittest module in the Confix test suites.
jf-unittest is a C++ unit test framework, modeled after the way I use the Python unittest module in the Confix test suites.. I wrote it out of frustration with the existing unittest frameworks out there. As such, I left off all the bloat: no GUI with colorful progress bars, no dependencies on any other package in the world.

It not even depends on the Boost library which would have come in quite handy, but which has a horrible build system. All one needs is a reasonably standards conformant compiler (which shouldn't be hard to get your hands on these days). For fun and educational purposes, the framework "bootstraps" itself in three stages, testing every aspect of itself before that aspect is used in the next stage.

The most fancy output one can get looks like this (taken from stage three of its own test suite, just before its completion).

+ jf::unittest::tests::Stage2Suite
+ jf::unittest::tests::SetupTeardownSuite
- jf::unittest::tests::SetupTeardownSuccess...ok
- jf::unittest::tests::SetupTeardownSetupFailure...failed
- jf::unittest::tests::SetupTeardownSetupError...failed
- jf::unittest::tests::SetupTeardownRunFailure...ok
- jf::unittest::tests::SetupTeardownRunError...ok
- jf::unittest::tests::SetupTeardownTeardownFailure...ok
- jf::unittest::tests::SetupTeardownTeardownError...ok
+ jf::unittest::tests::StartStopSuite
- jf::unittest::TestStartStop...ok
- jf::unittest::SuiteStartStop...ok
------------------------
#Success: 7
#Failures: 2
#Errors: 0
#Tests: 9
#Suites: 3
------------------------
Details follow ...
------------------------
Failure: jf::unittest::tests::SetupTeardownSetupFailure: result.num_error() == 1 (/home/jfasch/work/confix/unittest/trunk/basics/tests/setup_teardown.cc:89)
Failure: jf::unittest::tests::SetupTeardownSetupError: result.num_error() == 1 (/home/jfasch/work/confix/unittest/trunk/basics/tests/setup_teardown.cc:117)


What's New in This Release:

· added M$ files to distfiles
·

last updated on:
March 9th, 2008, 6:14 GMT
price:
FREE!
homepage:
confix.sourceforge.net
license type:
LGPL (GNU Lesser General Public License) 
developed by:
Joerg Faschingbauer
category:
ROOT \ Programming \ Quality Assurance and Testing
jf-unittest
Download Button

In a hurry? Add it to your Download Basket!

user rating 8

3.6/5
 

0/5

Rate it!

Add your review!

SUBMIT