Merged
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
nafg
commented
Jul 16, 2025
Introduce a new scoverage plugin to integrate Scala code coverage into the build. - Added ScoverageRewrite to automatically configure projects with scoverage compiler options and dependencies based on Scala version. - Added ScoverageScript providing CLI commands to run tests and generate coverage reports in multiple formats (html, xml, cobertura, console). - Defined a helper for coverage data directory in package object. - Updated bleep.yaml and bleep.publish.yaml to include the new plugin. This enables seamless code coverage measurement and reporting within the bleep build system.
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new scoverage plugin for Bleep to enable code coverage reporting capabilities. The plugin integrates with the Scala coverage tool scoverage and provides both test execution with coverage instrumentation and report generation functionality.
- Adds a new bleep-plugin-scoverage project with coverage compilation and reporting features
- Implements both Scala 2 and Scala 3 coverage support with appropriate compiler options
- Provides multiple report formats (HTML, XML, Cobertura, Console) and test execution commands
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| bleep.yaml | Adds the new bleep-plugin-scoverage project configuration with required dependencies |
| bleep.publish.yaml | Includes the new plugin in the list of projects to be published |
| bleep-plugin-scoverage/src/scala/bleep/plugins/scoverage/package.scala | Defines utility function for coverage data directory path |
| bleep-plugin-scoverage/src/scala/bleep/plugins/scoverage/ScoverageScript.scala | Implements the main plugin script with test and report commands |
| bleep-plugin-scoverage/src/scala/bleep/plugins/scoverage/ScoverageRewrite.scala | Provides build rewrite logic to add coverage instrumentation to non-test projects |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
bleep-plugin-scoverage/src/scala/bleep/plugins/scoverage/ScoverageScript.scala
Show resolved
Hide resolved
bleep-plugin-scoverage/src/scala/bleep/plugins/scoverage/ScoverageScript.scala
Show resolved
Hide resolved
bleep-plugin-scoverage/src/scala/bleep/plugins/scoverage/ScoverageRewrite.scala
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.