Comment on page
Test naming
Instructions on how to define the naming system used for tests generated by the Cover Plugin for IntelliJ.
Cover Plugin for IntelliJ allows you to define the naming system used for tests generated by Diffblue Cover. To do this, under
File -> Settings (Windows/Linux) or IntelliJ IDEA -> Settings (macOS), select Diffblue Cover and find the section Test Naming.You can define the test names using string literals and replacements.
Please note that any exact duplicate tests written will be automatically discarded by Diffblue Cover.
${CLASS_NAME}
For example:
${CLASS_NAME}Testpublic class UserAcessTest {
public String currentUser;
...
}
${INNER_CLASS_NAME}
For example:
test${METHOD_NAME}${INNER_CLASS_NAME}@Test
public void testAppendTitleInner() {
...
}
${METHOD_NAME}
For example:
test${METHOD_NAME}@Test
public void testAppendTitle() {
// Arrange
TooltipBuilder tooltipBuilder = new TooltipBuilder();
// Act
TooltipBuilder actual = tooltipBuilder.appendTitle("Foo title");
// Assert
assertNotNull(actual.toString());
assertSame(actual, tooltipBuilder);
}
@Test
public class testAppendTitle {
...
}
@Test
public class testAppendTitle2 {
...
}
Last modified 5d ago

