jf-unittest

jf-unittest is a C++ unit test framework, modeled after the way I use the Python unittest module in the Confix test suites.
Download

jf-unittest Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Joerg Faschingbauer
  • Publisher web site:

jf-unittest Tags


jf-unittest Description

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·


jf-unittest Related Software