Skip to content
Development
Skill

/unity-ceedling-integration

Use when adding, configuring, or debugging Unity, Ceedling, CMock, or embedded C unit tests, mocks, fixtures, build variants, or CI test runs

From plugin
aix-skills
3976 skills

Claude Code

$ npx -y skills add easyzoom/aix-skills --skill unity-ceedling-integration --agent claude-code

SKILL.md

unity-ceedling-integration.SKILL.md
name: unity-ceedling-integration
description: Use when adding, configuring, or debugging Unity, Ceedling, CMock, or embedded C unit tests, mocks, fixtures, build variants, or CI test runs

Unity Ceedling Integration

Overview

Use this skill to add embedded C tests with Unity assertions, Ceedling builds, and CMock-generated mocks while keeping hardware code behind clear seams. Good embedded tests isolate logic from registers, clocks, and interrupts without pretending the hardware does not exist.

When To Use

Use this skill when:

  • The user wants unit tests for C firmware, drivers, protocol parsers, state machines, or business logic.
  • The issue involves Ceedling project setup, include paths, mocks, fixtures, test runners, coverage, or CI.
  • The codebase uses vendor HALs, RTOS wrappers, static functions, compile-time flags, or hardware registers.

Do not use this skill for hardware-in-the-loop validation alone. Pair it with the relevant hardware or protocol skill.

First Questions

Ask for:

  • Toolchain, host OS, Ceedling version, compiler, and CI environment.
  • Code under test, dependencies, include paths, and hardware/HAL boundaries.
  • Whether mocks, fakes, or real modules should be used.
  • Build variants, configuration headers, and preprocessor flags.
  • Current failing command and full test output.

Integration Checklist

1. Identify testable units. Start with pure logic, parsers, state machines, and error handling before register-level code.

1. Define hardware boundaries. Wrap HAL calls, RTOS calls, time, logging, and storage behind interfaces that can be mocked or faked.

1. Configure Ceedling deliberately. Set source paths, include paths, defines, vendor files, and plugins in `project.yml`.

1. Write tests around behavior. Prefer input/output and state transitions over checking private implementation details.

1. Use CMock where it clarifies intent. Mock external collaborators, but use small fakes for stateful dependencies when expectations become brittle.

1. Add CI and coverage last. Keep the command non-interactive and fast enough to run on every change.

Common Failures

  • Tests include vendor headers that require target-only compiler extensions.
  • Static functions are tested directly instead of through behavior.
  • Mocks over-specify call order and make refactors painful.
  • Configuration macros differ between tests and firmware builds.
  • Global state is not reset in `setUp` or `tearDown`.
  • CI uses a different Ruby, compiler, or path layout than local runs.

Verification

Before claiming tests are useful:

  • State the Ceedling command and compiler used.
  • Confirm at least one passing test for normal behavior and one edge/error case.
  • Confirm mocks or fakes match the intended hardware boundary.
  • Confirm CI can run the same command non-interactively.

Example

User:

想给驱动状态机加 Ceedling 测试。

Agent:

1. Separates register access from state transition logic. 1. Adds Unity tests for events, retries, timeout, and invalid transitions. 1. Uses CMock only for external HAL/time dependencies.

Read more
@easyzoom
Ships withaix-skills

AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.

Stars on GitHub

Momentum

stars in total
39
Star history of easyzoom/aix-skills on GitHub, a chart by star-history.com

Other skills on aix-skills.

8051-mcu-debug

8051-mcu-debug

Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…

@easyzoom@easyzoomInstall Skill
avem-integration

avem-integration

Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…

@easyzoom@easyzoomInstall Skill
ble-gatt-integration

ble-gatt-integration

Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…

@easyzoom@easyzoomInstall Skill
bootloader-debug

bootloader-debug

Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…

@easyzoom@easyzoomInstall Skill
canbus-integration

canbus-integration

Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…

@easyzoom@easyzoomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about unity-ceedling-integration.

Which coding agents can use unity-ceedling-integration?
unity-ceedling-integration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.