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
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: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
- Measures baseline code coverage
- Determines what needs testing and partitions the work
- 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
- See the regression unit test generation workflow for language-specific details and options.
- See troubleshooting if you run into issues.