Criterion
greatest
Our great sponsors
Criterion | greatest | |
---|---|---|
9 | 7 | |
1,924 | 1,455 | |
- | - | |
5.7 | 0.0 | |
5 months ago | 11 months ago | |
C | C | |
MIT License | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Criterion
-
Show HN: RK Test, a Google Test style library written in C99
I really like Google Test, but am planning on doing some embedded development in C, where I sometimes find it awkward to test C code using a C++ library.
Therefore, I wrote a small unit test library closely mimicking Google Test. It consists of two source files, "rktest.c" and "rktest.h", and is about 1k lines of code and written in C99.
It uses a trick for self registering tests by placing pointers to the unit test functions into a known place in program memory, that I first learned about from https://github.com/christophercrouzet/rexo/ and https://github.com/Snaipe/Criterion/.
- Criterion: A cross-platform C/C++ unit testing framework for the 21st century
-
What is the best Unit testing framework for VS code for C?
I have been using criterion on a recent project and enjoying it.
-
Looking for unittest libraries in pure C
My school uses Criterion (doc). source code
-
I'm serious. try and change my mind
Otherwise I use criterion https://github.com/Snaipe/Criterion, since a few cases can't be checked properly in python (or are a hassle to do)
- Criterion 2.4 released (A cross-platform C and C++ unit testing framework))
-
How do I add custom C libraries to header and library search path?
Try this link for setup in doc.
-
How do I add a custom C library to my header and library search path?
https://github.com/Snaipe/Criterion < - repository for the unit-testing library.
- GitHub - Snaipe/Criterion: A cross-platform C and C++ unit testing framework for the 21st century
greatest
-
Test frameworks recommendation
I’ve only used greatest.h before. It was pretty ok, easy enough to use.
-
Basic programming help
Get a unit test library/framework. There are many good ones, but if you can't decide take greatest because it's a single-header library and easy to use.
-
Looking for unittest libraries in pure C
Greatest is 1 header file. https://github.com/silentbicycle/greatest
-
I have a problem with my final assignment, can you help me?
I'd recommend writing tests. Use a testing library (e.g. Unity or Greatest). Even if that sounds like more work right now, it can help find issues early, gives you confidence that your code does what it should, and often lets you progress much faster.
-
Testing Frameworks for C++, ESP32
I have used Greatest. Works great for my purposes.
-
Test framework for C
I use greatest it's pretty easy and just a header to copy into the source tree.
-
Rust and C++ Unit testing with cxx
(TL;DR greatest is the greatest test framework I could find for that particular use case. See my "research I did" link for details.)
What are some alternatives?
c_koans - C Koans
Unity Test API - Simple Unit Testing for C
gauge - Lean Haskell Benchmarking
Catch - A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
software-for-fun
AUnit - Unit testing framework for Arduino platforms inspired by ArduinoUnit and Google Test. Used with EpoxyDuino for continuous builds.
asciinema-edit - asciinema casts post-production tools
build - Sample project showing a minimalist multiplatform build
mite - Minimalist test framework for C language.
gid - Help project managers and project owners with easy-to-understand views of github issue dependencies.