Hippomocks
Catch
Our great sponsors
Hippomocks | Catch | |
---|---|---|
0 | 31 | |
176 | 15,217 | |
- | 2.3% | |
0.0 | 9.5 | |
3 months ago | 6 days ago | |
C++ | C++ | |
GNU Lesser General Public License v3.0 only | Boost Software License 1.0 |
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.
Hippomocks
We haven't tracked posts mentioning Hippomocks yet.
Tracking mentions began in Dec 2020.
Catch
-
MicroService Framework in C++
$ git clone https://github.com/catchorg/Catch2.git $ cd Catch2 $ cmake -Bbuild -H. -DBUILD_TESTING=OFF $ sudo cmake --build build/ --target install
-
How to make my Boost unit testing work?
Swap Boost Test for something better and more modern. The current industry standard is Catch2 and google test. There are much better documentation available on how to use those than the ancient and dying boost stuff.
- Testing framework Catch2 3.0 final released
-
Conan is not installed
It's just a couple of versions behind actually, and the latest version was released 11 days ago, but if you absolutely need the latest version, and conan isn't working, your best option would be to manually compile it or use it from the github repo of catch2, and this should be very simple considering you're on Linux
-
I cannot for the life of me figure out how to get libraries working
Conan or Vcpkg are probably the best way forward to begin with. Seriously, stop what you are doing and go try those out on something simpler first, e.g. A hello world using fmtfmt, or a unit test using catch2.
-
C++17 python like print function
For stuff like this which is very easy to test (very predefined input vs output), I highly suggest using some testing framework. Catch2 is great, but there is also doctest and good ole googletest. If you do this, it would also be a great intro to CI, where you do some plumbing on github or gitlab where every commit causes a build to happen on their servers and run through the unit tests, and if it passes it gets merged into master.
-
Running unit tests on a C project (like an OS kernel) that redefines built-in functions.
The following questions that I have are platform and testing framework agnostic but in the interest of being precise, I have been trying to set up CMake so that it is able to run a simple "Catch2" unit test. I'm use CLion as my test runner to make life easy and everything is running on Ubuntu 18.04.
- Unit test framework with multiple template parameters
-
From Julia to C++ Struggle
Again, there is no standard testing suite so you would have to pick a third party library (that preferably integrates with your build system). Popular choices are the google test framework and catch2
-
How to unit test
Have a look at catch (https://github.com/catchorg/Catch2) really simple to use.
What are some alternatives?
Google Test - GoogleTest - Google Testing and Mocking Framework
doctest - The fastest feature-rich C++11/14/17/20 single-header testing framework
Boost.Test - The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)
CppUnit - C++ port of JUnit
CppUTest - CppUTest unit testing and mocking framework for C/C++
Google Mock
benchmark - A microbenchmark support library
Unity Test API - Simple Unit Testing for C
FakeIt - C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.
UnitTest++ - A lightweight unit testing framework for C++
fff - A testing micro framework for creating function test doubles
trompeloeil - Header only C++14 mocking framework