Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

843 B
Raw Blame

paths: - "/*.cpp" - "/.hpp" - "**/.cc" - "/*.hh" - "/.cxx" - "**/.h" - "**/CMakeLists.txt"

C++ Testing

This file extends common/testing.md with C++ specific content.

Framework

Use GoogleTest (gtest/gmock) with CMake/CTest.

Running Tests

cmake --build build && ctest --test-dir build --output-on-failure

Coverage

cmake -DCMAKE_CXX_FLAGS="--coverage" -DCMAKE_EXE_LINKER_FLAGS="--coverage" ..
cmake --build .
ctest --output-on-failure
lcov --capture --directory . --output-file coverage.info

Sanitizers

Always run tests with sanitizers in CI:

cmake -DCMAKE_CXX_FLAGS="-fsanitize=address,undefined" ..

Reference

See skill: cpp-testing for detailed C++ testing patterns, TDD workflow, and GoogleTest/GMock usage.