Skip to content

feat: C++ tests code coverage measurements - #1199

Merged
SomePersonFromMars merged 11 commits into
mainfrom
feat/cpp-code-coverage-llvm-cov
Jul 31, 2026
Merged

feat: C++ tests code coverage measurements#1199
SomePersonFromMars merged 11 commits into
mainfrom
feat/cpp-code-coverage-llvm-cov

Conversation

@SomePersonFromMars

@SomePersonFromMars SomePersonFromMars commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Closes #

⚠️ Breaking changes ⚠️

Introduced changes

  • Added local and CI C++ gtest coverage via Clang LLVM source-based instrumentation (RunCoverage.sh, yarn test:cpp:coverage, llvm-cov HTML report).
  • Wired a parallel cpp-coverage GitHub Actions job that uploads the cpp-coverage-html artifact and prints a coverage summary; tests.yml can selectively run cpp / coverage / js jobs via workflow_dispatch booleans.
  • Extracted reusable js-job.yml (with draft-PR skip) alongside the existing C++ job workflows.
  • Fixed Linux Clang portability issues surfaced by the coverage build: aligned operator delete[] in SpscChannel, and constrained out-of-line ContextPromiseResolver factory definitions with explicit instantiations.

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code
  • Updated Web Audio API coverage
  • Added support for web
  • Updated old arch android spec file

Add ENABLE_COVERAGE and RunCoverage.sh (yarn test:cpp:coverage) so macOS
can build an instrumented suite and emit a gcovr HTML report, without CI yet.
Replace gcov-compatible --coverage/gcovr with -fprofile-instr-generate
-fcoverage-mapping and llvm-cov report/show so coverage uses Xcode tools only.
@SomePersonFromMars
SomePersonFromMars marked this pull request as ready for review July 30, 2026 09:51
@SomePersonFromMars
SomePersonFromMars marked this pull request as draft July 30, 2026 09:58
@SomePersonFromMars
SomePersonFromMars marked this pull request as ready for review July 30, 2026 11:09
@SomePersonFromMars
SomePersonFromMars marked this pull request as draft July 30, 2026 11:09
@SomePersonFromMars
SomePersonFromMars marked this pull request as ready for review July 30, 2026 14:01
@SomePersonFromMars SomePersonFromMars changed the title Feat/cpp code coverage llvm cov feat: C++ tests code coverage measurements Jul 30, 2026

@maciejmakowski2003 maciejmakowski2003 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done!

@SomePersonFromMars
SomePersonFromMars merged commit b0c3684 into main Jul 31, 2026
9 checks passed
@SomePersonFromMars
SomePersonFromMars deleted the feat/cpp-code-coverage-llvm-cov branch July 31, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants