Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/ci: Add coverage support #11

Merged
merged 15 commits into from
Apr 3, 2024
Merged

build/ci: Add coverage support #11

merged 15 commits into from
Apr 3, 2024

Conversation

jaqx0r
Copy link
Owner

@jaqx0r jaqx0r commented Feb 7, 2024

No description provided.

A lot of hair-tearing, and then eventually finding the right keyword to search
for.

Thanks again phst:
https://github.com/phst/rules_elisp/blob/f9664cf0e5c86653bffd1a02b7c0cccb4d27e979/elisp/defs.bzl#L214

Also thanks
https://github.com/c-mita/bazel_issues/blob/d217e2b7e7dc71088b7e02ddaa25a8f6b0f7d880/coverage_common/README.md?plain=1#L47

The magic is documented with the comment, copied from phst.  We need to provide
the hidden coverage collection binaries and test environment pointing to them.

We also must return the instrumented files provider listing the attribbutes
that contain its sources.

Now a bazel coverage ... generaets a report!
Copy link

github-actions bot commented Feb 7, 2024

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
7 suites ±0   0 💤 ±0 
7 files   ±0   0 ❌ ±0 

Results for commit 85126bc. ± Comparison against base commit 1c673ab.

♻️ This comment has been updated with latest results.

@jaqx0r jaqx0r force-pushed the bazel-cover branch 7 times, most recently from c1fa412 to 6e73d25 Compare February 7, 2024 21:16
@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@1c673ab). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #11   +/-   ##
=======================================
  Coverage        ?   46.43%           
=======================================
  Files           ?       22           
  Lines           ?     3228           
  Branches        ?      482           
=======================================
  Hits            ?     1499           
  Misses          ?     1729           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

We need `expect` for dejagnu, but the latter is now being fetched by bazel directly.
@jaqx0r jaqx0r merged commit 6490c13 into main Apr 3, 2024
5 of 6 checks passed
@jaqx0r jaqx0r deleted the bazel-cover branch April 14, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants