Skip to content

Commit b98f953

Browse files
Copilotbrunoborges
andcommitted
Document the test coverage workflow in README
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
1 parent 199bf37 commit b98f953

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,26 @@ This SDK tracks the official [Copilot SDK](https://github.com/github/copilot-sdk
127127
- **VS Code Copilot Chat** — type `/agentic-merge-upstream`
128128
- **GitHub Copilot CLI** — use `copilot` CLI with the same skill reference
129129

130+
### Automated Test Coverage Improvement
131+
132+
The repository includes an [Agentic Workflow](https://github.com/github/gh-aw) that automatically identifies untested code and creates comprehensive tests to increase coverage. The workflow is triggered manually:
133+
134+
**To run the workflow:**
135+
1. Go to the [Actions tab](../../actions/workflows/increase-test-coverage.lock.yml)
136+
2. Click "Run workflow"
137+
3. Optionally specify:
138+
- `target_package` — Focus on a specific package (e.g., `com.github.copilot.sdk.json`)
139+
- `min_coverage_threshold` — Target coverage percentage (default: 80%)
140+
141+
**What it does:**
142+
- Analyzes current test coverage using JaCoCo
143+
- Identifies methods, branches, and edge cases lacking tests
144+
- Creates high-quality tests following repository patterns
145+
- Groups related tests logically
146+
- Creates a PR for human review with coverage metrics
147+
148+
The workflow follows all repository conventions (Spotless formatting, existing test patterns, E2E test infrastructure) and ensures no production code is modified unnecessarily.
149+
130150
### Development Setup
131151

132152
```bash

0 commit comments

Comments
 (0)