Test Organization Annotations
Test organization annotations allow users to control how tests are organized and structured.
Using @WriteTestsTo
@WriteTestsToBasic Usage
package com.example.myapp;
import com.diffblue.cover.annotations.WriteTestsTo;
@WriteTestsTo("CustomTestClassName")
public class SourceClass {
public String getValue() {
return "example";
}
}
// Tests will be written to: src/test/java/com/example/myapp/CustomTestClassName.javaUsing @WriteTestsTo as an Escape Hatch for Merge Failures
Last updated
Was this helpful?

