No commit activity in last 3 years
No release in over 3 years
Cpp Runner for Mumuki
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 2.17
 Project Readme

Stories in Ready Build Status Code Climate Test Coverage

mumuki-cppunit-runner

Before install

sudo apt-get install g++ libcppunit-dev

Run the server

RACK_ENV=development rackup -p 4567

Using the runner

Writing a test

See Cpp Documentation

This runner does the following for you:

  • adds cpp's requires
  • writes the main method for you

In exchange, you must name you CppUnit MumukiTest and expose a testSuite() static method - which should be defined using CPP_UNIT_TEST macros -. Example:

class MumukiTest : public CppUnit::TestFixture {
  CPPUNIT_TEST_SUITE( MumukiTest );
    CPPUNIT_TEST( testFoo );
  CPPUNIT_TEST_SUITE_END();

  void testFoo()
  {
    Foo* foo = new Foo();
    CPPUNIT_ASSERT( foo->foo() == 4 );
    delete foo;
  }
};