Version 6 (modified by sam, 12 years ago) (diff)


I Can't Believe It's Not CppUnit!

The LolUnit test framework

LolUnit came from a need for a lightweight unit test system. Our previous framework of choice was 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.

Though we use it in production code, LolUnit’s overall quality should not be considered higher than proof of concept for now.

LolUnit offers the following features, which can also be seen as limitations if your requirements are very different from ours:

  • comes as a single .h header
  • does not require an external library, everything is in the .h
  • very resilient to user error: does not require any information duplication
  • works on embedded or gaming platforms: can be usedwithout exceptions and/or RTTI
  • formats its standard text output in the same way as CppUnit

Features will be added depending on internal use but also user requests.


Download the single <lol/unit.h> file.


See the LolUnit tutorial for an introduction on how to use LolUnit.

Attachments (1)

Download all attachments as: .zip