ceedling-build-runner
БесплатноБез исполняемых скриптовНе проверенUse when a C project wants Unity, CMock and CException run by one build command, or CMock mocks need writing or reading: Ceedling project scaffolding…
от testland★ 18 звёзд на GitHubОб этом скилле
ceedling-build-runner
Overview
This skill covers the Ceedling build orchestration - the
ceedling command-line tool, project.yml schema, and rake
tasks, per
throwtheswitch.org/ceedling.
For the Unity assertion API see unity-test-framework-c; for
CMock's generated mock API see references/cmock.md;
for cross-target run see qemu-system-test-runner; for coverage see
embedded-coverage-strategy-reference.
When to use
- C unit-test project - Ceedling is the canonical setup for the ThrowTheSwitch stack.
- Host-build-driven test loop (most embedded teams test on the
host first, then cross-compile under
qemu-system-test-runner) - Ceedling handles the host pipeline natively. - Coverage required - the bundled gcov plugin produces LCOV / HTML / Cobertura without external glue.
- Mock-heavy module - CMock is integrated; no separate generator invocation needed.
If the unit-under-test is C++ instead of C, prefer
googletest-embedded-arm;
Ceedling does not target C++.
Authoring
Scaffolding a new project
Per the Ceedling README and the command-line reference at github.com/ThrowTheSwitch/Ceedling/.../getting-started/command-line.md:
gem install ceedling
ceedling new my-firmware --docs --local
cd my-firmware
--docs includes the documentation locally; --local vendors
Unity / CMock / CException into vendor/ceedling/ so the build
doesn't need network at compile time. The generated layout:
my-firmware/
project.yml # the schema covered below
src/ # production code under test
test/ # one test_<module>.c per module
test/support/ # shared test helpers
build/ # generated; gitignore'd
vendor/ceedling/ # bundled Unity + CMock + CException
project.yml
A minimal project.yml for a host test loop:
:project:
:build_root: build/
:use_mocks: TRUE
:test_file_prefix: test_
:paths:
:test:
- test/**
:source:
- src/**
:include:
- inc/**
:plugins:
:enabled:
- report_tests_pretty_stdout
- report_tests_junit_xml
- gcov
The full schema (every top-level section, test vs release
:flags, the :cmock / :cexception / :gcov blocks, per-section
notes, and the plugin list) is in
references/project-yml-schema.md.
Creating a module
ceedling module:create[ringbuffer]
# Creates src/ringbuffer.c, src/ringbuffer.h, test/test_ringbuffer.c
The generator emits the canonical skeleton - production header /
source with includes wired, test file with setUp / tearDown /
one test_ringbuffer_NeedToImplement placeholder.
Running
ceedling test:all # Run every test_*.c
ceedling test:ringbuffer # Run only test_ringbuffer.c
ceedling gcov:all # Run under gcov instrumentation + generate report
ceedling test:all returns non-zero on any test failure; CI
gates on the exit code. gcov:all writes
build/artifacts/gcov/GcovCoverageResults.html (HtmlDetailed) or
GcovCoverageCobertura.xml (Cobertura) - see
embedded-coverage-strategy-reference.
The canonical CI invocation chains tasks on one command line:
ceedling clobber test:all release gcov:all
# Clean -> run tests -> build release -> produce coverage report
The full task surface (test:pattern, test:path,
--test-case, release, clean / clobber, environment,
dumpconfig) is in
references/task-reference.md.
Parsing results
Pretty stdout output
-------------------
OVERALL TEST SUMMARY
-------------------
TESTED: 47
PASSED: 46
FAILED: 1
IGNORED: 0
Failures are reported per assertion with file:line:test:reason:
test/test_ringbuffer.c:48:test_overflow_returns_minus_one:FAIL: Expected -1 Was 0
JUnit XML
With report_tests_junit_xml enabled, ceedling test:all writes
build/artifacts/test/report.xml in the canonical JUnit schema -
the same one GoogleTest produces, so the same CI pipeline plugin
(GitHub mikepenz/action-junit-report, GitLab JUnit, Jenkins
JUnit) consumes both.
CI integration
jobs:
ceedling-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Ruby + Ceedling
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- run: gem install ceedling
- name: Run tests + coverage
run: ceedling clobber test:all gcov:all
- name: Publish JUnit
if: always()
uses: mikepenz/action-junit-report@v4
with:
report_paths: 'build/artifacts/test/*.xml'
- name: Publish coverage
uses: codecov/codecov-action@v5
with:
files: build/artifacts/gcov/GcovCoverageCobertura.xml
For a cross-compile path (host bu
Установить ceedling-build-runner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ceedling-build-runner?
Use when a C project wants Unity, CMock and CException run by one build command, or CMock mocks need writing or reading: Ceedling project scaffolding, project.yml, test tasks, JUnit XML, gcov coverage, host vs cross builds and CI. The Unity assertion API is unity-test-framework-c.
Как установить скилл ceedling-build-runner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ceedling-build-runner запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic