Skip to content

Add the code testing agent and /add-tests workflow#7602

Merged
JanKrivanek merged 2 commits intomainfrom
dev/jankrivanek/test-agent
Apr 8, 2026
Merged

Add the code testing agent and /add-tests workflow#7602
JanKrivanek merged 2 commits intomainfrom
dev/jankrivanek/test-agent

Conversation

@JanKrivanek
Copy link
Copy Markdown
Member

@JanKrivanek JanKrivanek commented Apr 7, 2026

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

@JanKrivanek
Copy link
Copy Markdown
Member Author

/add-tests

@JanKrivanek JanKrivanek marked this pull request as ready for review April 8, 2026 08:22
Copilot AI review requested due to automatic review settings April 8, 2026 08:22
Copy link
Copy Markdown
Contributor

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 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-tests workflow 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

@JanKrivanek JanKrivanek enabled auto-merge (squash) April 8, 2026 08:44
@JanKrivanek JanKrivanek disabled auto-merge April 8, 2026 12:42
@JanKrivanek JanKrivanek merged commit 3ff4be3 into main Apr 8, 2026
7 of 8 checks passed
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.

3 participants