GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Diffblue Agents home page
  • Cover Docs
  • Community Forum
  • Website
  • Requirements
  • Install Diffblue Agents
  • Troubleshooting
  • Support
  • Changelog
  • Quickstart
  • Prepare project for test generation
  • Plan regression unit test generation
  • Regression unit test generation
  • Quickstart

This view

  • Original page
  • New address

GeezerVison is showing docs.diffblue.com — Quickstart - Diffblue Agents

​
Prerequisites

  • Diffblue Agents installed
  • A license key with the Diffblue Testing Agent enabled (from your Diffblue account manager or trial sign-up)
  • A supported AI coding agent platform installed and authenticated — run diffblue-agents install to configure
  • A Java or Python project that meets the project requirements

​
Activate your license

Run the activation command with your license key:
diffblue-agents license activate <your-license-key>
Verify the license is active:
diffblue-agents license
You should see your license status, edition, licensed agents, and expiry date.

​
Prepare your project

In your terminal, navigate to your project directory. Before running Diffblue Agents, verify that your project builds and any existing tests pass. See the project requirements for language-specific details.

​
Trust the project directory

Your AI coding agent must trust the project directory before Diffblue Agents can use it. Open your agent in the project root and approve the trust prompt. If available, select the option to remember this setting for future sessions. You only need to do this once per project.
  • Claude
  • Copilot
claude
Select the Yes, I trust this folder option.
copilot
Select the Yes, and remember this folder for future sessions option.

​
Create a branch

Ensure your working tree is clean before creating a branch — commit or stash any uncommitted changes:
git status
Create a branch for the generated tests:
git checkout -b diffblue-agents-tests
Diffblue Agents generates tests in temporary worktrees and cherry-picks passing tests to the current branch. Creating a dedicated branch keeps your main branch clean and lets you review the tests before merging.

​
Run the regression unit test generation workflow

From the root of your project, start the workflow:
diffblue-agents run regression-unit-tests
Diffblue Agents starts its server, analyzes your project, and runs through the following stages:
  • Detects project configuration and validates the build environment (see prepare project workflow for details)
  • Measures baseline code coverage
  • Determines what needs testing and partitions the work
  • Displays a resource estimate and prompts you to confirm (Y to proceed, n to abort)
  • Generates, compiles, and validates tests for each partition
  • Commits passing tests and rolls back failing tests
  • Reports final coverage and a summary

​
Review the results

When the workflow completes, it displays a summary:
Runtime: 8m 5s (execution: 7m 42s, approval wait: 0m 23s) | Files Processed: 22 | Callable Functions: 87
Tests Generated: 136 (136 committed, 0 rolled back)

Module        Language  Line Coverage     Lines Covered     Branch Coverage
Total         -         94.5% (+94.5%)    1842/1949 (+1842) 96.3% (+96.3%)
Generated tests are committed to your current branch. Review the commits with git log to see what was added.

​
Next steps

  • Validate your project setup before running test generation with the prepare project workflow.
  • Preview the scope and resource estimates with the planning workflow.
  • See the regression unit test generation workflow for language-specific details and options.
  • See troubleshooting if you run into issues.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.