utest.h
utest.h
utest.h | utest.h | |
---|---|---|
4 | 3 | |
768 | 1 | |
- | - | |
7.0 | 0.0 | |
25 days ago | over 2 years ago | |
C++ | C | |
The Unlicense | The Unlicense |
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.
utest.h
-
GitHub - Snaipe/Criterion: A cross-platform C and C++ unit testing framework for the 21st century
Doesn't really have CMake integration, which is a big downer. You could try utest.h, which is a pretty minimal (as the name suggests), but featureful testing library. It still needs you to declare the main, but is that really such a problem?
-
Testing in C
the header-only https://github.com/sheredom/utest.h might be worth a shot if you trying to keep things compact.
-
Open Source C
Sprinkle your console apps with UTEST test's.
utest.h
-
what's the hate for CMake all about? Is CMake really that bad?
I would say simple things are simple. CMake does use RPATH on RPATH compatible platforms, there is no need to copy DLLs. In fact, if the DLL depends on assets relative ot its location now you are just digging a deep hole for yourself for no good reason. On platforms where RPATH is not supported (Windows), you should make DLLs available via PATH, which Just Works tm. This is a shortcoming of Windows. You are free to forward your complaints to Microsoft. Regardless, here's some help with the PATH thing.
-
GitHub - Snaipe/Criterion: A cross-platform C and C++ unit testing framework for the 21st century
This fork of it has proper CMake integration and provides a module for automatic test discovery with the unique ability to handle DLL finding for you on Windows, which is documented here.
What are some alternatives?
Google Test - GoogleTest - Google Testing and Mocking Framework
cmake-init - The missing CMake project initializer
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)
Vcpkg - C++ Library Manager for Windows, Linux, and MacOS
fff - A testing micro framework for creating function test doubles
Unity Test API - Simple Unit Testing for C
Nonius - A C++ micro-benchmarking framework
benchmark - A microbenchmark support library
Boost.Test - The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)
libtap - Write tests in C
ig-debugheap - Debug heap useful for tracking down memory errors.
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework