|over 2 years ago||9 days ago|
|GNU General Public License v3.0 or later||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.
We haven't tracked posts mentioning hayai yet.
Tracking mentions began in Dec 2020.
How do I properly unit-test a class or module?
3 projects | reddit.com/r/cpp_questions | 24 Dec 2021
First of all, use a testing library, it makes life a lot easier. I mostly use https://github.com/catchorg/Catch2 You can pass cli args to specify which tests to run, and it makes things a whole lot simpler.
Oof: Manipulate (RGB) color, position and more of console output in a single C++ header library
4 projects | reddit.com/r/cpp | 21 Nov 2021
I'll just give you two links: CMake tutorial: https://cmake.org/cmake/help/latest/guide/tutorial/index.html . Shouldn't take years to complete Catch2 doc: https://github.com/catchorg/Catch2/blob/devel/docs/migrate-v2-to-v3.md . They briefly explain why they finally moved away from header only
3 projects | dev.to | 19 Nov 2021
Finally, I moved onto working on Kien's potato SSG. His setup with catch2 is similar to mine, we both have it set up to provide us a main which we compile separately when we want to test it, rather than having it integrated into the program all the time. This made it easy to get started on his, I read his contributing.md which specified one should create a new source file to write their desired test cases, which I did. After messing around with file paths for a bit and figuring out how to get my test to pass, I pushed a commit and created a pull request with a test for his HTMLFile.getTitle() function. Unfortunately I realized with the workflow he had set up this wouldn't trigger his CI so I opted to insert my test case in test.cpp instead to see if it passed his workflow, which thankfully it did.
2 projects | dev.to | 12 Nov 2021
For my part I added some testing capabilities to my SSG using Catch2. Catch2 was super easy to set up and involved downloading one header file from their github repo and including it in my program. There are a number of ways you can choose to have Catch interact with your project, either by having Catch define your main i.e
Adding tests to LENNAH
1 project | dev.to | 11 Nov 2021
Since LENNAH is written in C++ I had to look around for a good unit testing framework and I came across Catch2. Catch2 is a very easy to use testing framework because all you need to do is add a single header file to your project then #define and #include it! This was the main reason I wanted to use this framework, because I saw a lot of people online recommend it since it is quick to set up and easy to use. And they are absolutely right about that, it only need two lines of code to set it up.
Catch2 - Testing Framework
2 projects | dev.to | 11 Nov 2021
I downloaded catch.hpp file from Catch2 Repo.
Unit testing and mocking for c++
6 projects | reddit.com/r/cpp | 19 Oct 2021
I'm answering a question asked not from me. I've used both Google.Test and Catch2 and latter one feels much nicer. Sections from Catch2 just do not exist in other frameworks however they are super powerful. It has drawbacks like not having out of the box macros for setting up stuff once for all the runs of a test before a test is run with various parameters. See https://github.com/catchorg/Catch2/issues/1602 Integrating gmock should be easy as I've seen but not flawless. As I remember some extra work needs to be done so expectations are verified at end of sections? See https://github.com/matepek/catch2-with-gmock Google.Test doesn't support (or at least didn't when I last looked) some combination of type and value generators. Other than that, the slightly uglier syntax and lack of sections (which is pretty big) it's all good. Especially with gmock all integrated and delivered to you in one package.
How should I make tests?
2 projects | reddit.com/r/cpp_questions | 26 Sep 2021
Maybe you would be interested in Catch2. I have been using it in all my projects, its pretty good.
Unit testing and mocks in C++
2 projects | reddit.com/r/Cplusplus | 8 Sep 2021
Catch2 and Google Test are pretty much the gold standards. Any unittest framework should integrate into your IDE (although I personally don't use CLion).
Testing Frameworks for C++, ESP32
4 projects | reddit.com/r/embedded | 1 Sep 2021
That is one of the framework that we are considering: https://github.com/catchorg/Catch2
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++
benchmark - A microbenchmark support library
UnitTest++ - A lightweight unit testing framework for C++
Unity Test API - Simple Unit Testing for C
fff - A testing micro framework for creating function test doubles
Celero - C++ Benchmark Authoring Library/Framework