4 ms·
Criterion: A cross-platform C and C++ unit testing framework
- octocop 5y agoUsually i want to mock classes and functions with these frameworks. gmock just werks for dat.
- dang 5y agoRelated: Show HN: Writing modern C unit tests with Criterion - https://news.ycombinator.com/item?id=10147873 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 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 https://news.ycombinator.com/item?id=9033506 - Feb 2015 (1 comment)
- ggerganov 5y agoA 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.
- jpm48 5y agoMost likely a combination of asciinema https://asciinema.org/ https://asciinema.org/ and https://github.com/cirocosta/asciinema-edit 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
- Vitamin_Sushi 5y agoasciinema maybe?
- tristan957 5y agoSeems 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.
- thebruce87m 5y agoI quite like the mocking in ceedling.
- cassepipe 5y agoThe author also created a mocking lib : https://github.com/Snaipe/Mimick https://github.com/Snaipe/Mimick