fff
A testing micro framework for creating function test doubles (by meekrosoft)
CppUTest
CppUTest unit testing and mocking framework for C/C++ (by cpputest)
fff | CppUTest | |
---|---|---|
12 | 1 | |
805 | 1,393 | |
3.4% | 0.9% | |
3.6 | 7.9 | |
over 1 year ago | 19 days ago | |
C | C++ | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
fff
Posts with mentions or reviews of fff.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-20.
- Don't Use Mocks
-
Like seriously why does not one does it ?
Only cool framework in my opinion. I wish I had the guts to delve so deeply into Variadic Macros.
-
Unit testing C++ SDK using Cpputest lib in STM32
You can use GoogleTests. Also, if you have C functions which need to be mocked, you can try using the FFF framework along with with gtest.
-
commonly used c-unit testing framework in 2022?
I use Unity Fixtues + FFF + CException framework.
-
Relative Newbie to Linux Command Line
For news reading, surely, I'd go with newsboat, perfect for this. Newsboat also fetches Odysee and Youtube channels, and you can integrate mpv to it to watch the videos. No ads, nothing. For file manager, I'm using fff, very minimal and relatively easy to configure.
-
industry standard for Test frameworks?
Also recommend checking out fff.
-
Embedded Cross-Compiled Test Driven Development with CGull
FFF Github page
-
What techniques do you have to develop before hardware is available?
Everything else was covered: Ceedling+Unity+CMock for Unit Testing in C, CppuTest or GoogleTest or other options for C/C++. FFF is also useful when mocking. If you test and develop your modules correctly, they should when they are in your application. If you are developing using an Event-Driven Framework like QP or QML, then I would not test anything to do with the framework, but the functions that are called in each event. Same thing if you are using an RTOS, test what's inside your threads/tasks.
-
Unit Testing in C
Here is link number 1 - Previous text "fff"
-
RFC on a C unit testing and Mocking library I am working on
Interesting! Always nice to see more of these kind of test tools for C. I'm currently using fff and Unity
CppUTest
Posts with mentions or reviews of CppUTest.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-09-24.
-
Tool Containerization Best Practices For Embedded Software Development
# Use the Debian base image as our starting point. FROM debian:bullseye # Install the required packages. RUN apt update -y && \ apt -y install g++=4:10.2.1-1 \ cmake=3.18.4-2+deb11u1 \ libtool=2.4.6-15 \ autoconf=2.69-14 \ git=1:2.30.2-1+deb11u2 \ gdb=10.1-1.7 \ wget=1.21-1+deb11u1 \ bzip2=1.0.8-4 \ make=4.3-4.1 \ stlink-tools=1.6.1+ds-3 # Clone and install CppUTest RUN git clone https://github.com/cpputest/cpputest WORKDIR /cpputest RUN autoreconf . -i && \ ./configure && \ make tdd ENV CPPUTEST_HOME=/cpputest # Set the working directory for your project WORKDIR /work # Download and set up the GNU Arm toolchain RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 && \ tar -xjf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 && \ rm gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 && \ mv gcc-arm-none-eabi-10.3-2021.10 /opt/gcc-arm ENV PATH="/opt/gcc-arm/bin:${PATH}"
What are some alternatives?
When comparing fff and CppUTest you can also consider the following projects:
Google Mock
Google Test - GoogleTest - Google Testing and Mocking Framework
CppUnit - C++ port of JUnit
UnitTest++ - A lightweight unit testing framework for C++
Unity Test API - Simple Unit Testing for C
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)
utest.h - 🧪 single header unit testing framework for C and C++
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework