Skip to content
SubagentImported

diffblue-cover

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

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 3.1 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/agents/

    mkdir -p .claude/agents && unzip ~/Downloads/diffblue-cover.zip -d .claude/agents

  • For your account on the whole machine

    It goes in: ~/.claude/agents/

    mkdir -p ~/.claude/agents && unzip ~/Downloads/diffblue-cover.zip -d ~/.claude/agents

Instructions

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.

Files

  • LICENSE1 KB
  • diffblue-cover.md2 KB

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • SubagentImported

    6-test-generator

    Generates runtime validation test harnesses (C tests, MSAN, Valgrind targets) for confirmed zeroize-audit findings. Produces a Makefile for automated test execution.

    CC-BY-SA-4.0Files: 1

  • SubagentImported

    ab-test-analysis

    Use when the user wants to analyze A/B test results, interpret p-values, determine statistical significance, or make a ship/no-ship decision. Triggers on: 'analyze A/B test', 'p-value', 'statistical significance', 'confidence interval', 'sh

    MITFiles: 1

  • SubagentImported

    agent-creator

    Use this agent when the user asks to "create an agent", "generate an agent", "build a new agent", "make me an agent that...", or describes agent functionality they need. Trigger when user wants to create autonomous agents for plugins. Examp

    Apache-2.0Files: 1

  • SubagentImported

    amplitude-experiment-implementation

    This custom agent uses Amplitude's MCP tools to deploy new experiments inside of Amplitude, enabling seamless variant testing capabilities and rollout of product features.

    MITFiles: 1

  • SubagentImported

    backend-development-tdd-orchestrator

    Master TDD orchestrator specializing in red-green-refactor discipline, multi-agent workflow coordination, and comprehensive test-driven development practices. Enforces TDD best practices across teams with AI-assisted testing and modern fram

    MITFiles: 1

  • SubagentImported

    backend-development-test-automator

    Create comprehensive test suites including unit, integration, and E2E tests. Supports TDD/BDD workflows. Use for test creation during feature development.

    MITFiles: 1