3 ms·
I wrote greatest because minunit doesn't provide any of the infrastructure that nearly every test runner grows eventually, in some ad hoc way. Halting after the
by silentbicycle 13y ago
I wrote greatest because minunit doesn't provide any of the infrastructure that nearly every test runner grows eventually, in some ad hoc way. Halting after the first error is just not good enough after projects grow beyond a certain size. Also, being able to run just specific suite(s) or test(s) by name patterns from the command line really speeds up one's workflow.
I still wanted something as straightforward to use as minunit, though. Not knocking it. I'd rather use minunit than something that imposed its own architectural opinions on my projects, or consumed resources already in short supply. Also, I make a lot of small C utilities and libraries, and having to define a "project" just to have tests adds a bit too much friction.
(I wrote a bit more about that here: http://spin.atomicobject.com/2013/07/31/greatest-c-testing-embedded/ http://spin.atomicobject.com/2013/07/31/greatest-c-testing-e... )
- abtinf 13y agoAgreed. I've skimmed the source and it looks like it would be much easier to integrate into a build system as well. I find Minunit helpful because its easy to memorize and dump into a new project for quick testing. Its brevity also seems to help introduce c devs to unit testing.