BullseyeCoverage Up Contents Search

Ceedling

No special configuration changes are needed to use BullseyeCoverage with the Ceedling build system.

To install Ceedling, first install Ruby then run the command below.

$ sudo gem install ceedling
⋮
Successfully installed ceedling-1.0.1
⋮

To build and instrument a sample project, run the commands below.

$ ceedling example temp_sensor
$ cd temp_sensor
$ cov01 -q -1
$ ceedling -v4 clean test:all
⋮
Compiling TestExecutor.c...
> Shell executed command:
`gcc -I"build/test/mocks/TestExecutor" -I"test/support" -I"src" -I"build/vendor/unity/src" -I"build/vendor/cmock/src" -D"TEST" -DGNU_COMPILER -g -c "test/TestExecutor.c" -o "build/test/out/TestExecutor/TestExecutor.o" -MMD -MF "build/test/dependencies/TestExecutor.d"`
> Produced output:
BullseyeCoverage Compile 9.24.3 Linux-x64, Copyright (c) Bullseye Testing Technology
> And terminated with exit code: [0]
⋮
-----------------------
OVERALL TEST SUMMARY
-----------------------
TESTED:  51
PASSED:  51
FAILED:   0
IGNORED:  0
⋮
$ covsrc -q src/
Source                                 Function Coverage    C/D Coverage
-------------------------------------  -----------------  --------------
src/AdcModel.c                             2 /  5 =  40%   0 /  0
src/AdcHardware.c                          3 /  4 =  75%   0 /  0
src/AdcConductor.c                         5 /  5 = 100%  11 / 12 =  91%
src/Executor.c                             2 /  2 = 100%   0 /  0
src/Main.c                                 1 /  1 = 100%   2 /  2 = 100%
src/Model.c                                1 /  1 = 100%   0 /  0
src/TaskScheduler.c                        4 /  4 = 100%   8 /  8 = 100%
src/TemperatureCalculator.c                1 /  1 = 100%   2 /  2 = 100%
src/TemperatureFilter.c                    3 /  3 = 100%  10 / 10 = 100%
src/TimerConductor.c                       2 /  2 = 100%   0 /  0
src/TimerHardware.c                        1 /  1 = 100%   0 /  0
src/TimerModel.c                           1 /  1 = 100%   0 /  0
src/UsartBaudRateRegisterCalculator.c      1 /  1 = 100%   2 /  2 = 100%
src/UsartConductor.c                       2 /  2 = 100%   2 /  2 = 100%
src/UsartHardware.c                        2 /  2 = 100%   2 /  2 = 100%
src/UsartModel.c                           3 /  3 = 100%   2 /  2 = 100%
-------------------------------------  -----------------  --------------
Total                                     34 / 38 =  89%  41 / 42 =  97%

Updated: 7 Apr 2026