Skip to content

Conversation

@aidenblue
Copy link

@aidenblue aidenblue requested a review from Copilot December 5, 2025 10:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces the @WriteTestsTo annotation that allows users to specify custom test class names for Diffblue Cover-generated tests. The annotation provides class-level control over test organization, overriding the default --class-name-template configuration.

Key changes:

  • Added the @WriteTestsTo annotation with runtime retention and type-level targeting
  • Created an example demonstrating the annotation's usage
  • Updated package version from 1.8.0 to 1.9.0
  • Added comprehensive documentation section explaining the annotation's purpose and usage

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/main/java/com/diffblue/cover/annotations/WriteTestsTo.java New annotation definition with documentation specifying alphanumeric test class names and same-package placement
src/test/java/com/example/WriteTestsToExample.java Example class demonstrating @WriteTestsTo annotation usage with simple test methods
pom.xml Version bump from 1.8.0 to 1.9.0 to reflect new annotation feature
README.md Added "Test Organization Annotations" section with usage examples and formatting improvements throughout

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aidenblue aidenblue requested a review from a team December 5, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants