Skip to content

feat: Updating newest MoranaApps version for generating JaCoCo report#175

Draft
tmikula-dev wants to merge 10 commits into
masterfrom
feature/166-implement-jmf-solution
Draft

feat: Updating newest MoranaApps version for generating JaCoCo report#175
tmikula-dev wants to merge 10 commits into
masterfrom
feature/166-implement-jmf-solution

Conversation

@tmikula-dev

@tmikula-dev tmikula-dev commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Overview

This pull request overhauls the project's JaCoCo test coverage reporting setup, replacing custom SBT plugins with the official jacoco-method-filter-sbt plugin and modernizing the GitHub Actions workflow for coverage checks. The changes streamline configuration, improve maintainability, and enable more granular coverage reporting by module. Additionally, new SBT aliases are introduced for easier coverage runs, and the workflow is optimized to only run coverage checks when Scala files change.

Release Notes:

  • New JMF version available that wraps the logic and simplifies the implementation.

Related

Closes #166

@tmikula-dev tmikula-dev self-assigned this Jun 17, 2026
@tmikula-dev tmikula-dev added the enhancement New feature or request label Jun 17, 2026
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown

JaCoCo Coverage Report

Metric (instruction) Coverage Threshold Status
Overall 73.13% 71.0%
Changed Files 96.88% 73.0%
Group Coverage (O/Ch) Threshold (O/Ch) Status (O/Ch)
login-service-api 73.13% / 96.88% 73.0% / 80.0% ✅/✅
login-service-client-library 0.0% / 0.0% 62.0% / 80.0% ✅/✅
Report Coverage (O/Ch) Threshold (O/Ch) Status (O/Ch)
Report: api - scala:2.12.17 73.13% / 96.88% 73.0% / 80.0% ✅/✅
File Path Coverage Threshold Status
AuthManagerConfig.scala 96.88% 60.0%

Run 27826524106 · Event: pull_request

Copilot AI left a comment

Copy link
Copy Markdown

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 migrates the project’s JaCoCo coverage setup from custom in-repo SBT AutoPlugins to the official jacoco-method-filter-sbt plugin, and updates the GitHub Actions workflow to run coverage reporting with module-level grouping/thresholds.

Changes:

  • Added io.github.moranaapps:jacoco-method-filter-sbt SBT plugin and enabled JacocoFilterPlugin in relevant modules.
  • Removed custom JaCoCo/JMF SBT plugin implementations and moved coverage command aliases into .sbtrc.
  • Overhauled the jacoco_check.yml workflow to (a) detect Scala changes, (b) run coverage, and (c) post grouped JaCoCo PR comments via MoranaApps/jacoco-report.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
project/plugins.sbt Adds the official jacoco-method-filter-sbt plugin dependency.
project/JacocoBaseKeysPlugin.scala Removes obsolete custom JaCoCo base keys plugin.
project/FilteredJacocoAgentPlugin.scala Removes obsolete custom JaCoCo/JMF agent + reporting plugin implementation.
build.sbt Switches modules to JacocoFilterPlugin and removes old custom JaCoCo wiring/aliases.
api/src/main/scala/za/co/absa/loginsvc/rest/AuthManagerConfig.scala Cleans up an unused import.
.sbtrc Adds SBT aliases for running JaCoCo per module and toggling participation.
.github/workflows/jacoco_check.yml Updates CI coverage workflow (change detection, grouped thresholds, PR reporting).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/jacoco_check.yml
Comment on lines +86 to +88
- name: Build and run tests with coverage
continue-on-error: true
run: sbt jacoco
@tmikula-dev tmikula-dev marked this pull request as draft June 18, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt Java Method Filtration JaCoCo Extension

3 participants