fff
goos-code-examples
fff | goos-code-examples | |
---|---|---|
12 | 6 | |
730 | 72 | |
- | - | |
3.6 | 10.0 | |
6 months ago | over 8 years ago | |
C | Java | |
GNU General Public License v3.0 or later | - |
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
- 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
goos-code-examples
-
Don't Use Mocks
A very good way to use mocks (not like illustrated here) is explained in the GOOS book by Freeman and Pryce: http://www.growing-object-oriented-software.com/
-
Resources for learning TDD
Further read: Growing Object Oriented Software
-
Steel threads are a technique that will make you a better engineer
On the subject of TDD, the way I've done TDD has been very similar to the technique described in the article. Work in very small increments, try to get a very thin vertical slice of functionality working through the system as soon as possible and, whatever you build, try to get it working end-to-end as soon as you can. Of course, I use tests to drive the work but I find it very helpful to use tests to drive those thin vertical slices of functionality.
The book that really helped me to start working in this way is Growing Object Oriented Software, Guided by Tests by Steve Freeman and Nat Pryce [0]. The book has been around for a few years at this point and tech has moved on since then, as have some of the techniques, but it's still a very interesting read. (Disclosure: I was lucky enough to briefly work with one of the authors a few years ago but I was a fan of the book long before then.)
[0] http://www.growing-object-oriented-software.com/
-
Unit testing best practices
I think this is still the most referenced work. You probably know that one like the back of your hand, but it's still good to reference in general to convey confidence in the topic.
-
Sleeping is not the best option
[3] Have a look at the testing asynchronous systems examples in the GOOS Code examples repository for a more object-oriented implementation of helper for the polling for changes strategy, and also examples of the capturing notifications strategy.
What are some alternatives?
Google Mock
Practices
Google Test - GoogleTest - Google Testing and Mocking Framework
CppUTest - CppUTest unit testing and mocking framework for C/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)
UnitTest++ - A lightweight unit testing framework for C++
gdb-frontend - ☕ GDBFrontend is an easy, flexible and extensible gui debugger. Try it on https://debugme.dev
esp-idf - Espressif IoT Development Framework. Official development framework for Espressif SoCs.
utest.h - 🧪 single header unit testing framework for C and C++
Boost.Test - The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)
minUnit - Minimal unit testing framework for C