Criterion: A cross-platform C and C++ unit testing framework(github.com)
github.com
Criterion: A cross-platform C and C++ unit testing framework
https://github.com/Snaipe/Criterion
8 comments
Seems alright. I am kind of looking through test frameworks to get rid of our home-grown mess. Was looking at GLib, but I will add this one to the list. I have found finding mocking to be extremely hard to do in C. Would love to drop our current mock stuff.
The author also created a mocking lib : https://github.com/Snaipe/Mimick
I quite like the mocking in ceedling.
A bit off topic - if I wanted to make a gif similar to the one in the README of this project, what tool would I need to use? The typing seems to be automated somehow to be at a constant rate.
Most likely a combination of asciinema https://asciinema.org/ and https://github.com/cirocosta/asciinema-edit (You can do it by hand as well, but the tools are easier). Use the Quantize and speed options
asciinema maybe?
Usually i want to mock classes and functions with these frameworks. gmock just werks for dat.
Show HN: Writing modern C unit tests with Criterion - https://news.ycombinator.com/item?id=10147873 - Aug 2015 (13 comments)
Show HN: Criterion – A new C unit testing framework - https://news.ycombinator.com/item?id=9107912 - Feb 2015 (1 comment)
Show HN: A new unit testing framework for C - https://news.ycombinator.com/item?id=9033506 - Feb 2015 (1 comment)