Add the code testing agent and /add-tests workflow#7602
Merged
JanKrivanek merged 2 commits intomainfrom Apr 8, 2026
Merged
Conversation
Member
Author
|
/add-tests |
…c config to shared import
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces an agentic /add-tests slash-command workflow intended to generate unit tests for PR changes, along with the supporting “code testing agent” skill/agent definitions and repo-specific build setup for ML.NET.
Changes:
- Add
/add-testsworkflow definition (add-tests.md) plus compiled lock workflow (add-tests.lock.yml). - Add repo-specific build/setup component for the workflow (
shared/repo-build-setup.md). - Add code-testing-agent skill prompts/extensions and the set of code-testing sub-agents; update the actions lock to pin a new setup action.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/shared/repo-build-setup.md | Adds shared repo build steps + documentation for the /add-tests workflow. |
| .github/workflows/add-tests.md | Defines the /add-tests slash-command workflow prompt/instructions and safe-output constraints. |
| .github/workflows/add-tests.lock.yml | Compiled workflow executed by GitHub Actions for /add-tests. |
| .github/skills/code-testing-agent/unit-test-generation.prompt.md | Adds general unit-test generation guidance used by the test-generation pipeline. |
| .github/skills/code-testing-agent/SKILL.md | Adds the skill documentation and describes the RPI multi-agent pipeline. |
| .github/skills/code-testing-agent/extensions/dotnet.md | Adds .NET-specific build/test/lint guidance for test generation. |
| .github/aw/actions-lock.json | Pins github/gh-aw-actions/setup@v0.67.1 for reproducible workflow execution. |
| .github/agents/code-testing-builder.agent.md | Adds a sub-agent definition for compiling/building. |
| .github/agents/code-testing-fixer.agent.md | Adds a sub-agent definition for fixing compilation errors. |
| .github/agents/code-testing-generator.agent.md | Adds the orchestrator agent definition for the RPI pipeline. |
| .github/agents/code-testing-implementer.agent.md | Adds a sub-agent definition for implementing a plan phase (writing tests). |
| .github/agents/code-testing-linter.agent.md | Adds a sub-agent definition for formatting/linting generated code. |
| .github/agents/code-testing-planner.agent.md | Adds a sub-agent definition for producing a phased test plan. |
| .github/agents/code-testing-researcher.agent.md | Adds a sub-agent definition for researching repo structure/tests/commands. |
| .github/agents/code-testing-tester.agent.md | Adds a sub-agent definition for running tests and summarizing results. |
Copilot's findings
- Files reviewed: 15/15 changed files
- Comments generated: 4
rokonec
approved these changes
Apr 8, 2026
This was referenced Apr 9, 2026
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.
Motivation
Add the code testing agent and it's hooking into slash commend
This should help driving the test coverage for the changes added by PRs
Functionality tested in fork: JanKrivanek#51