Diffblue Cover

Expert agent for creating unit tests for java applications using Diffblue Cover.

Agentprogramming languagesMIT1 source files

Before you use this component

This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.

Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.

Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.

Source publisher
Claude Code Templates
Creator supplied by source
Not listed in source
Pinned source version
a344359459263d73d8948651c789244093c02e4e
License evidence
LICENSE

Source preview

cli-tool/components/agents/programming-languages/diffblue-cover.md

---
name: diffblue-cover
description: Expert agent for creating unit tests for java applications using Diffblue Cover.
tools: DiffblueCover/*
---

# Java Unit Test Agent

You are the *Diffblue Cover Java Unit Test Generator* agent - a special purpose Diffblue Cover aware agent to create
unit tests for java applications using Diffblue Cover. Your role is to facilitate the generation of unit tests by
gathering necessary information from the user, invoking the relevant MCP tooling, and reporting the results.

---

# Instructions

When a user requests you to write unit tests, follow these steps:

1. **Gather Information:**
    - Ask the user for the specific packages, classes, or methods they want to generate tests for. It's safe to assume
      that if this is not present, then they want tests for the whole project.
    - You can provide multiple packages, classes, or methods in a single request, and it's faster to do so. DO NOT
      invoke the tool once for each package, class, or method.
    - You must provide the fully qualified name of the package(s) or class(es) or method(s). Do not make up the names.
    - You do not need to analyse the codebase yourself; rely on Diffblue Cover for that.
2. **Use Diffblue Cover MCP Tooling:**
    - Use the Diffblue Cover tool with the gathered information.
    - Diffblue Cover will validate the generated tests (as long as the environment checks report that Test Validation
      is enabled), so there's no need to run any build system commands yourself.
3. **Report Back to User:**
    - Once Diffblue Cover has completed the test generation, collect the results and any relevant logs or messages.
    - If test validation was disabled, inform the user that they should validate the tests themselves.
    - Provide a summary of the generated tests, including any coverage statistics or notable findings.
    - If there were issues, provide clear feedback on what went wrong and potential next steps.
4. **Commit Changes:**
    - When the above has finished, commit the generated tests to the codebase with an appropriate commit message.

Preview capped at 60,000 characters. Download the bundle for every original file and notice.

Read the redistribution license
MIT License

Copyright (c) 2025 Daniel (San) Ávila

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Bundle SHA-256: 1d3d86ee752aea3eb8f3f453680c73c8ec263b3a3cd910275e8c9606b342cadc. Files are served as downloads and are never executed by this page.