Changes between Version 3 and Version 4 of oss/lolunit


Ignore:
Timestamp:
Sep 8, 2011, 8:47:08 AM (12 years ago)
Author:
sam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • oss/lolunit

    v3 v4  
    11= The LolUnit test framework =
    22
    3 LolUnit came from a need to for a lightweight unit test system. Our previous framework of choice was [http://cppunit.sourceforge.net/doc/lastest/cppunit_cookbook.html CppUnit], but we stopped using it because there was no practical way to pre-build it for all the platforms we support (Windows with various compilers, Android, iOS, PS3…). Also, we had to keep as many precompiled binaries as there were versions of libstdc++, multiplied by the number of possible configurations (debug, release…). This was very difficult to maintain.
     3LolUnit came from a need for a lightweight unit test system. Our previous framework of choice was [http://cppunit.sourceforge.net/doc/lastest/cppunit_cookbook.html CppUnit], but we stopped using it because there was no practical way to pre-build it for all the platforms we support (Windows with various compilers, Android, iOS, PS3…). Also, we had to keep as many precompiled binaries as there were versions of libstdc++, multiplied by the number of possible configurations (debug, release…). This was very difficult to maintain.
    44
    55Though we use it in production code, LolUnit’s overall quality should not be considered higher than '''proof of concept''' for now.
     
    1111 * can be built with `-fno-exceptions -fno-rtti`
    1212 * formats its standard text output in the same way as CppUnit
     13
     14Features will be added depending on internal use but also user requests.
    1315
    1416== Download ==
     
    6264}}}
    6365
    64 One major problem I have with this system is that `Addition` needs to be declared and defined at two different places. Similarly, `Test1` needs to be declared, then given as an argument to `CPPUNIT_TEST_SUITE`, and finally as an argument to `CPPUNIT_TEST_SUITE_REGISTRATION`.
     66One major problem I have with this system is that `Addition` needs to be declared and defined at two different places. Similarly, `Test1` needs to be declared, then given as an argument to `CPPUNIT_TEST_SUITE`, and finally as an argument to `CPPUNIT_TEST_SUITE_REGISTRATION`. There is no reason the user should have to duplicate this information.
    6567
    6668This is the LolUnit equivalent:
     
    9395}
    9496}}}
     97
     98We believe it is a lot simpler.