Skip to content

Add agentic workflow for automated test coverage improvement#99

Merged
brunoborges merged 4 commits intomainfrom
copilot/increase-test-coverage
Feb 9, 2026
Merged

Add agentic workflow for automated test coverage improvement#99
brunoborges merged 4 commits intomainfrom
copilot/increase-test-coverage

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

Implements a GitHub Agentic Workflow that analyzes JaCoCo coverage reports, identifies untested code paths, and generates comprehensive test suites via pull request. Current coverage: 66% overall (core SDK: 69%, json: 68%, events: 60%).

Implementation

  • Workflow trigger: Manual workflow_dispatch with optional target_package and min_coverage_threshold (default: 80%) inputs
  • Agent capabilities: GitHub API read access (repos, issues, PRs), file editing via bash
  • Safe outputs: PR creation (non-draft), comment posting - no direct write permissions required
  • Agent instructions:
    • Analyze JaCoCo reports to identify uncovered methods, branches, and edge cases
    • Generate tests following existing patterns (E2ETestContext for integration, JUnit 5 for unit tests)
    • Apply Spotless formatting and validate with mvn clean verify
    • Group related tests logically per class/feature

Files

  • .github/workflows/increase-test-coverage.md - Workflow definition (6.6K)
  • .github/workflows/increase-test-coverage.lock.yml - Compiled Actions workflow (54K)
  • .gitattributes - Mark lock files as generated with merge=ours
  • README.md - Usage documentation in Contributing section

Usage

Navigate to Actions → Increase Test Coverage → Run workflow. Agent creates PR with coverage delta and test descriptions for review.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/copilot_internal/user
    • Triggering command: /home/REDACTED/work/copilot-sdk-java/copilot-sdk-java/target/copilot-sdk/test/harness/node_modules/@github/copilot-linux-x64/copilot /home/REDACTED/work/copilot-sdk-java/copilot-sdk-java/target/copilot-sdk/test/harness/node_modules/@github/copilot-linux-x64/copilot --server --no-auto-update --log-level info --stdio --auth-token-env COPILOT_SDK_AUTH_TOKEN --no-auto-login (http block)
    • Triggering command: /home/REDACTED/work/copilot-sdk-java/copilot-sdk-java/target/copilot-sdk/test/harness/node_modules/@github/copilot-linux-x64/copilot /home/REDACTED/work/copilot-sdk-java/copilot-sdk-java/target/copilot-sdk/test/harness/node_modules/@github/copilot-linux-x64/copilot --server --no-auto-update --log-level info --stdio --auth-token-env COPILOT_SDK_AUTH_TOKEN --no-auto-login ame de/node/bin/npx which curl�� (http block)
    • Triggering command: /home/REDACTED/work/copilot-sdk-java/copilot-sdk-java/target/copilot-sdk/test/harness/node_modules/@github/copilot-linux-x64/copilot /home/REDACTED/work/copilot-sdk-java/copilot-sdk-java/target/copilot-sdk/test/harness/node_modules/@github/copilot-linux-x64/copilot --server --no-auto-update --log-level info --stdio --auth-token-env COPILOT_SDK_AUTH_TOKEN --no-auto-login r de/node/bin/sh which gh (http block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 9, 2026 20:47
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Copilot AI changed the title [WIP] Add tests to increase code coverage Add agentic workflow for automated test coverage improvement Feb 9, 2026
Copilot AI requested a review from brunoborges February 9, 2026 20:50
@brunoborges brunoborges marked this pull request as ready for review February 9, 2026 21:12
@brunoborges brunoborges merged commit b111a1b into main Feb 9, 2026
2 checks passed
@brunoborges brunoborges deleted the copilot/increase-test-coverage branch February 16, 2026 15:43
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