TestCraft is the evolution of the pitest-gradle plugin, expanding its capabilities beyond Gradle-based PITest mutation testing. While the original plugin focused on running PITest mutation testing for Java Gradle projects, TestCraft now offers a comprehensive testing suite that includes:
- PITest mutation testing support for both Gradle and Maven projects
- Advanced test case management features
- AI-powered test analysis capabilities
The plugin has been renamed to TestCraft to better represent its expanded functionality and modern testing features. The release version will continuing from the last pitest-gradle version.
- uninstall pitest-gradle
- install TestCraft plugin
- Run PITest mutation testing on your Java Gradle & Maven projects
- View mutation test results in a dedicated tool window
- Navigate directly to mutated code with inline editor decorations
- Track mutation testing history and trends
- Manage test cases with structured annotations
- Validate test assertions to prevent trivial or redundant tests
- Enforce test documentation standards with comment validation
- Track test cases across your codebase
- Get intelligent suggestions for test improvements
- Analyze test coverage and quality
- Copy responses in markdown format for documentation
- Integration with local LLM services (e.g., Ollama) for privacy
- Download the latest release from the releases page
- Open IntelliJ IDEA
- Go to
File
->Settings
->Plugins
->Install Plugin from Disk...
- Select the downloaded
.zip
file
- Open your JUnit test file and ensure it passes
- Right-click on the test file and select
Run Mutation Test
in theTestCraft
menu - Input the target class (e.g.,
com.example.MyClass
orMyClass
) - View results in the
Mutation Test History
tool window
- Configure test annotations in
Settings
->TestCraft
->Test Annotations
- Set up assertion validation rules in
Settings
->TestCraft
->Test Case Validation
- Add required annotations to your test methods
- TestCraft will validate your tests as you write them
- Configure LLM settings in
Settings
->TestCraft
->LLM Settings
- Right-click on a test method and select
Analyze Test
for AI suggestions - View suggestions in the
LLM Suggestions
tool window - Copy suggestions as markdown for documentation
Running a mutation test on a target class
Detailed mutation test results with browser view option
Mutation Test History with searchable interface
[Add screenshots for test case management features]
[Add screenshots for AI testing features]
Configure test case management annotations in Settings
-> TestCraft
-> Test Annotations
:
- Define required fields
- Set validation rules
- Configure auto-import behavior
Set up test validation rules in Settings
-> TestCraft
-> Test Case Validation
:
- Define invalid assertion patterns
- Configure comment requirements
- Set validation severity levels
Configure AI integration in Settings
-> TestCraft
-> LLM Settings
:
- Set up Ollama endpoint
- Configure model parameters
- Manage response formatting
TestCraft is compatible with IntelliJ IDEA versions 2020.1 through latest published (not rc/eap).
TestCraft is licensed under the Apache License 2.0. See the LICENSE file for details.