codewars / runner

Issue tracker for Code Runner
33 stars 8 forks source link

Replace C++ Igloo with a better testing framework #52

Open Voileexperiments opened 5 years ago

Voileexperiments commented 5 years ago

I'm looking at Igloo and there are lots of problems with it:

I'm looking at a wide range of C++ test framework and it seems that Catch2 is a nice replacement. Header-only, light-weight, does the same thing, supports strings as section names, support predicates and such. RapidCheck, a C++ QuickCheck clone, also uses Catch within itself.

googletest and boost.org test are two that are actively maintained and fairly popular too. But I really want want arbitrary section names, so I personally likes Catch2 more.

kazk commented 5 years ago

I've been wanting to replace with Catch2. It has a way to customize the output as well (considered unstable at the moment).

It'll get done eventually because it's needed for Qualified. I'll worry about how to handle converting Codewars contents later.

kazk commented 5 years ago

And thanks for RapidCheck!

nomennescio commented 3 years ago

Indeed, Igloo is horrible. It's near to impossible to create custom error messages, something even the clunky C Criterion test framework is able to do. And documentation is severely lacking.

The proposed Catch2 at least support custom error messages. And documentation seems OK.