Unity Test API
esp-idf

Unity Test API | esp-idf | |
---|---|---|
16 | 251 | |
4,358 | 14,706 | |
2.6% | 2.2% | |
5.7 | 10.0 | |
26 days ago | 1 day ago | |
C | C | |
MIT License | Apache License 2.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.
Unity Test API
-
Ask HN: Best dev environment for C in 2024?
There are plenty of good IDE in 2024 for any languages; C included.
For the IDE itself, the big choices are between Jetbrains CLion and VSCode. If you are familiar with Jetbrains product for another language, stick to it. Same for VSCode, if you’re use to it, just install the right plugins.
I personally prefer Jetbrains product because it is working without selecting/installing all the plugins. Some people likes to tweak their environment. So, I don’t use a lot of plugins on the IDE.
I use VSCode only when I have multiple stack in the same project (typically Flutter project which include the Dart part and the native part). In that case, VSCode is more practical.
In the embedded world, there is also Kiel for ARM embedded development. (https://www.keil.com/). I was never be able to use it. It is really unnatural to me but a lot of embedded C developers love it.
Regarding the dev tools, I prefer to use tools that are multi platform and widely used. So, the dev tools include CMake, make and GNU C compiler. It is a pretty common toolkit that covered my needs so far.
Unit tests are written with Unity Test Framework (https://github.com/ThrowTheSwitch/Unity). It is simple and allow to be executed on the target if required; which is practical for embedded development.
- Jenkins not detecting test fail
-
Unit testing tool suggestions
Here is the github repo link of Unity: https://github.com/ThrowTheSwitch/Unity
-
What is the best Unit testing framework for VS code for C?
You shouldn't need a configuration file to write tests with Unity. You are using Unity from Unity on Github right? You can use YAML files to along with some helper scripts Unity and related tools provide, but it doesn't sound like you are there yet.
-
In C++, why am I getting an error about iterators going out of range of a vector in a statement that uses neither iterations nor vectors?
First, for context, as part of my internship, I'm writing unit tests for functions from a hardware manufacturer provided C++ library. This particular code is testing if the relevant function returns a unique location ID for each hardware device. The test assert macro I'm using is from the Unity test framework C library.
-
commonly used c-unit testing framework in 2022?
I use Unity Fixtues + FFF + CException framework.
-
Where can I find information on how to use specific Unity test framework macros in C/C++?
Edit: I also tried Googling "list of Unity test framework macros" and found this, which is kind of helpful, but still doesn't actually explain how the correct syntax for specific macros or precisely what they do. I guess basically, I'm looking for something similar to the entries on cppreference.com, but for the Unity macros instead of the standard library functions for C++.
-
industry standard for Test frameworks?
I know Unity is used in the embedded industry, I also use it for my own personal projects. It’s great and does everything I need.
-
Testing Frameworks for C++, ESP32
If you're using the ESP-IDF framework, it already comes with Unity. It's easy to use, and you have the Test Driven Development for Embedded C book as reference.
-
Unit Testing in C
I use the Unity Test Framework: https://github.com/ThrowTheSwitch/Unity
esp-idf
-
ESP32 Undocumented Bluetooth Commands: Clearing the Air
The researcher-or-tinkerer who wants to play with these commands can just not upgrade to the newer ESP-IDF. Or update to a newer ESP-IDF, and revert the patch. It's open source. https://github.com/espressif/esp-idf
-
ESP-IDF with Arduino Examples
The target ESP-IDF version is v5.3.2
- Show HN: I made a tiny device for automatically recording digital pianos
- Esp-Idf v5.3 Includes ESP32-P4 Support
-
Reverse engineering ESP32 Wi-Fi driver: the road ahead
The BT stack is based on Bluedroid, so that’s open source (up to the driver I’d guess); see here https://github.com/espressif/esp-idf/tree/master/components/...
-
ESP32S3 ability to change wakeup interrupt in wake stub/ulp coprocessor program?
For returning to deep sleep from the wake-up stub you can take a look at how it is done in https://github.com/espressif/esp-idf/tree/master/examples/system/deep_sleep_wake_stub
-
Trying to learn ESP-IDF on VSCode
You can find the examples here: https://github.com/espressif/esp-idf/tree/master/examples
-
GC9A01 vs ILI9341 for M5Stack AtomS3 LCD - both work, which should I use?
I found the spi_lcd_touch example and flashed it, and it seems to run fine with either ili9341 or gc9a01 drivers selected (although both are mirrored, and one has the colours inverted compared to the other - both of which I assume are things I can fix in either driver).
-
I2C Interrupt
If that's the case: You register a GPIO as event source and make a task waiting for it, that then just performs the I2C-transaction. Follow this example https://github.com/espressif/esp-idf/blob/master/examples/peripherals/gpio/generic_gpio/main/gpio_example_main.c
-
ESP-IDP and pytest markers for supported targets
IDF contains stuff like https://github.com/espressif/esp-idf/blob/master/pytest.ini and https://github.com/espressif/esp-idf/blob/master/tools/ci/idf_pytest/constants.py which are not part of the pytest-embedded package.
What are some alternatives?
Google Test - GoogleTest - Google Testing and Mocking Framework
MicroPython - MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
arduino-esp32 - Arduino core for the ESP32
CppUTest - CppUTest unit testing and mocking framework for C/C++
ElegantOTA - OTA updates made slick and simple for everyone! (ESP8266, ESP32, RP2040+W, RP2350+W)
