Prerequisites
- Diffblue Agents installed
- A license key (from your Diffblue account manager or trial sign-up)
- A supported AI coding agent platform installed and authenticated — run
diffblue-agents installto configure - A Java or Python project that meets the project requirements
Activate your license
Run the activation command with your license key: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
Create a branch
Ensure your working tree is clean before creating a branch — commit or stash any uncommitted changes:Run the regression unit test generation workflow
From the root of your project, start the workflow:- 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 (
Yto proceed,nto 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: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.