Build system for C meant to be used with unit testing frameworks and libraries Unity, CMock and CException. The [ceedling] tag should be used only where the build system itself is of relevance, consider using tags [unity-test-framework], [cmock] and [cexception] instead.
Questions tagged [ceedling]
41 questions
1
vote
2 answers
How do I use Ceedling/Unity/Cmock to test embedded Systems
I am new at testing embedded systems with ceedling. I was wondering if there is a good place to start in terms of learning how to use ceedling.
The project that I am working on its an embedded System for a CubeSat Project and we need a way to test…

Addi
- 49
- 2
- 5
1
vote
1 answer
Ruby IO.popen Permission Denied
I am very close to getting the Microchip MPLABX MDB (debugger) working with an automated test suite called ceedling. I have a ruby file called sim_test_fixture.rb
This file is to open the mdb.bat and pass it a config file called…

Michael Miner
- 964
- 2
- 17
- 39
0
votes
1 answer
Ceedling command always outputs a weird string. Why does this happen?
I just installed Ceedling for the first time. I did it by installing ruby via Msys2 using pacman -S mingw-w64-x86_64-ruby which installed ruby version 3.1.3-2 and then ran gem install ceedling in cmd.
Now, whenever I run any command from ceedling I…

Eyal Gerber
- 1,026
- 10
- 27
0
votes
0 answers
Using Ceedling with West
I'm trying to set up ceedling with a zephyr based repo. I have a very basic example minimal repo and minimal test setup. I can run individual tests successfully with cmake files and west build -p -b native_posix test/src -t run -d test/build However…

Indigo
- 962
- 1
- 8
- 23
0
votes
2 answers
Gcov 6.0 with Ceedling 0.31.1 generates empty html report
I am trying to generate a html report using ceedling and gcov. But I keep getting a empty html report.
I have added report_include like this link mentions at the bottom of the page -…

Joe
- 37
- 8
0
votes
1 answer
Issue installing ceedling in Windows 11
I have tried to install ceedling for Windows 11. But come across this error:
Failed to load C:/ProgramData/gemrc, (): control characters are not allowed at line 1 column 1
I installed Ruby 3.1.3.1 (x64) from here…

Joe
- 37
- 8
0
votes
1 answer
C unit testing with Unity / Ceedling: How to avoid code duplication when testing multiple function inputs?
I'm new to unit testing and I'm wondering about best practices and how these are applied using Unity / Ceedling.
I'm especially wondering how to avoid code duplication when testing multiple function inputs, but at the same time keeping it clear what…

Bex
- 1
- 1
0
votes
0 answers
Ceedling: Feasibility to Multi-target low-level unit tests
Given the following production file structure
hardware.h // Generic interface to initialize low-level hardware
hw_microcontroller_A.c // includes hardware.h for microcontroller type A
hw_microcontroller_B.c // includes…

cowboydan
- 1,062
- 7
- 15
0
votes
2 answers
Convert Long To Double, Unexpected Results
I am using very basic code to convert a string into a long and into a double. The CAN library I am using requires a double as an input. I am attempting to send the device ID as a double to another device on the CAN network.
If I use an input string…

Michael
- 399
- 2
- 17
0
votes
0 answers
GCOV - include header files in code coverage report
I am quite new to Ceedling and unit testing, so bear with me for a moment ...
The code that I am testing contains macros in a header file in the form:
#define DO_Something_with_a_MCU_Registers() \
()
The…

rtoma
- 1
- 2
0
votes
1 answer
Ceedling/CMock: Adding va_list to :treat_as_array: produces a TypeError
I am working on developing some unit tests for some non-open source inherited code. For now I have just been testing the ceedling framework, using the autogenerated tests to ensure everything runs as it should.
Everything works fine when I run tests…

Gabriel
- 1
- 4
0
votes
1 answer
ceedling with MPLABx and XC8
I am starting unit testing using ceedling from Windows Powershell. I have made a lot of progress getting Unity to work with the XC8 compiler. But I have a problem I can't seem to solve. Here is a bit of the build dump.
'xc8-cc -mcpu=PIC16F18325…

Tim Trudeau
- 31
- 3
0
votes
0 answers
Unit test large projects with Ceedling
I've used Ceedling in the past on bare-metal projects that don't have many vendor libraries, so creating unit tests and mocking dependencies was pretty easy.
Now I'm trying to integrate Ceedling on a very large project. On this project I'm…

Dani M
- 1,173
- 1
- 15
- 43
0
votes
1 answer
Add __wrap prefix to mocked functions with Cmock
I have generated mock_foo.h and mock_foo.c from my foo.h header using Ceedling. The problem is that in generated file there are function names the same as in foo.c. For example, foo_function() is now in both foo.c and mock_foo.c, and I have to…

adamm
- 849
- 1
- 6
- 17
0
votes
1 answer
Ceedling Selectable YML File
I am using Jenkins on Ubuntu 20.04 to automate my build process. Two projects have been given to me and they are heavily coupled. I will work on separating the two but first I need some tests set up. The two projects are PNE and BLDC for…

Michael
- 399
- 2
- 17