Skip to content

Conversation

@nafg
Copy link
Contributor

@nafg nafg commented Jul 16, 2025

No description provided.

@nafg

This comment was marked as resolved.

@nafg nafg requested a review from Copilot July 16, 2025 20:33

This comment was marked as outdated.

@nafg nafg requested a review from Copilot August 17, 2025 19:55
@nafg nafg marked this pull request as ready for review August 17, 2025 19:56

This comment was marked as outdated.

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.
@nafg nafg requested a review from Copilot August 17, 2025 20:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@nafg nafg merged commit 7b396e7 into main Aug 17, 2025
3 checks passed
@nafg nafg deleted the nafg/scoverage branch August 17, 2025 20:17
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