BullseyeCoverage Up Contents Search

Ceedling

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

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

$ sudo gem install ceedling
…
Fetching ceedling-0.31.1.gem
…
Successfully installed ceedling-0.31.1
…

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

$ ceedling example temp_sensor
$ cd temp_sensor
$ cov01 -1
BullseyeCoverage Build Enable/Disable 9.5.0 Linux-x64
Copyright (c) Bullseye Testing Technology
$ ceedling test:all
Test 'TestAdcConductor.c'
-------------------------
Generating include list for AdcModel.h...
Generating include list for AdcHardware.h...
Creating mock for AdcModel...
Creating mock for AdcHardware...
Generating runner for TestAdcConductor.c...
Compiling TestAdcConductor_runner.c...
BullseyeCoverage Compile 9.5.0 Linux-x64
Copyright (c) Bullseye Testing Technology
Compiling TestAdcConductor.c...
BullseyeCoverage Compile 9.5.0 Linux-x64
Copyright (c) Bullseye Testing Technology
…
--------------------
OVERALL TEST SUMMARY
--------------------
TESTED:  47
PASSED:  47
FAILED:   0
IGNORED:  0
$ covsrc src/
BullseyeCoverage Source Report 9.5.0 Linux-x64
Copyright (c) Bullseye Testing Technology
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: 9 Feb 2022