Commit Graph

22 Commits

Author SHA1 Message Date
portersky 4269f65942 docs: remove duplicated commands from AGENTS.md
Commands, CMake module path, and commit message examples are
all in skills now. AGENTS.md references them with /skill: links.

Update Source Layout to match current files.
2026-06-15 04:40:45 +02:00
portersky 657d154560 style: fix include order in all source files
Move C stdlib headers before local/project headers with a
blank line separator, matching the AGENTS.md include order rule.

Replace em dash with colon in main.c comment.
2026-06-15 04:35:44 +02:00
portersky 3ce42cc8db chore: add gitattributes, rename guide, and template comments
Add .gitattributes enforcing LF line endings.

Add a rename guide to README.md for scaffolding new projects.

Comment main.c as a template placeholder to replace.
2026-06-15 04:33:55 +02:00
portersky 2d25ad3a10 style: apply AGENTS.md rules to .pi markdown files
Replace em dashes with colons in tdd skill. Split combined\nshell commands in git skill into separate fenced blocks with\nlabels.
2026-06-15 04:31:59 +02:00
portersky 2ba1d2f7b6 fix: use C syntax in tdd skill examples
auto trailing return types are C++ only. Split header and\nimplementation examples into C and C++ variants.
2026-06-15 04:31:04 +02:00
portersky 457b6651be chore: generalize tdd skill for template reuse
Replace ctdd-specific paths with <src>/ placeholders so the skill
works in any project scaffolded from this template.
2026-06-15 04:30:42 +02:00
portersky 95ec83a0fd chore: generalize cmake skill for template reuse
Replace ctdd-specific paths with <src>/ placeholders so the skill
works in any project scaffolded from this template.
2026-06-15 04:29:49 +02:00
portersky 79d3b92511 chore: add pi skills for tdd, cmake, and git
Create .pi/skills/ with three skills:
- tdd: Red-Green-Refactor workflow, Unity assertions, CMock patterns
- cmake: build commands, adding modules, dependency FetchContent pattern
- git: conventional commits, semver tagging, branching conventions

Update AGENTS.md and README.md to reference the skills and template
project description.
2026-06-15 04:27:39 +02:00
portersky 286c51b2e7 feat: add architecture detection to Platform.cmake 2026-06-15 00:57:36 +02:00
portersky 4b501676b7 feat: support cmock_config.yml in cmock_generate_mock 2026-06-15 00:53:50 +02:00
portersky 7fbc4a49c5 docs: remove em dashes from README 2026-06-15 00:50:46 +02:00
portersky e9bdd3bff5 chore: add TDD workflow, behavioral guidelines, and ASan support
Add deps/Sanitizers.cmake for AddressSanitizer support (ENABLE_ASAN).
Add TDD workflow and behavioral guidelines to AGENTS.md.
2026-06-14 19:36:04 +02:00
portersky 6227ddf5df fix: clear Unity INTERFACE_SYSTEM_INCLUDE_DIRECTORIES
CI / macOS (push) Has been cancelled
CI / Windows / Clang (push) Has been cancelled
Unity sets INTERFACE_SYSTEM_INCLUDE_DIRECTORIES to a path inside
the build tree, which CMake rejects on newer versions. Clear it
after FetchContent; the path remains in INTERFACE_INCLUDE_DIRECTORIES.
2026-05-10 01:38:49 +02:00
portersky 8df5eaa4e8 fix: use xcrun for llvm-cov on AppleClang
AppleClang ships llvm-cov inside Xcode and it is not on PATH,
so find_program fails. Use xcrun llvm-cov gcov via a wrapper
script instead.
2026-05-10 01:35:38 +02:00
portersky 0eb646e0b4 ci: add GitHub Actions workflow for macOS and Windows
CI / macOS (push) Has been cancelled
CI / Windows / Clang (push) Has been cancelled
Runs tests and coverage on macOS (AppleClang) and Windows with
Clang. Coverage HTML reports are uploaded as artifacts.
2026-05-10 01:30:56 +02:00
portersky 2ed2b60f43 docs: add macOS to platform support list 2026-05-10 01:21:39 +02:00
portersky 10c78343fe docs: fix AGENTS.md project info and no-em-dash rule
Remove stale cuber references and unrelated static library
section. Add no-em-dash rule and apply it throughout.
2026-05-10 01:03:32 +02:00
portersky a457b5351a Add LICENSE 2026-05-10 00:57:59 +02:00
portersky 8e0f4fc8d0 feat: add coverage and command doc rule
Add Coverage.cmake with gcovr integration, detecting Clang vs
GCC and wrapping llvm-cov gcov in a build-dir script to handle
paths with spaces on Windows. Update README and AGENTS.md with
the new one-command-per-block documentation rule.
2026-05-10 00:53:03 +02:00
portersky cd19cc14c0 feat: add Unity color and check target
Enable UNITY_OUTPUT_COLOR and UNITY_INCLUDE_PRINT_FORMATTED via
compile definitions on the unity target so colors propagate to all
test suites automatically.

Add a 'check' custom target that builds all suites and runs CTest
with --output-on-failure and USES_TERMINAL, keeping ANSI colors
alive through Ninja's buffering.
2026-05-09 21:32:58 +02:00
portersky 701c644408 feat: add log levels to logger
Replace log_message with log_debug/info/warn/err and a level filter
controlled by logger_set_level. Extract the printf sink into
log_write so CMock can intercept it in test_logger. Add 9 tests
covering emit and suppression behaviour per level.
2026-05-09 20:43:32 +02:00
portersky bee8424782 Inital commit 2026-05-09 20:32:55 +02:00