What's New > Version 2021.08.01

Support for IntelliJ IDEA Community Edition 2021.2 and IntelliJ IDEA Ultimate 2021.2

Release date: Aug 02, 2021

Support for recent versions of IntelliJ IDEA

Diffblue Cover now supports IntelliJ IDEA Community Edition 2021.2 and IntelliJ IDEA Ultimate 2021.2.

This will be our last release supporting IntelliJ IDEA 2020.3. We encourage all users to move onto more recent versions of IntelliJ as soon as possible to get the two-weekly updates to Diffblue Cover.

General Enhancements

Continuing our work to provide the optimal user experience, Diffblue Cover now:

  • Warns if a better combination of Spring dependencies could be used
  • Provides improved user feedback and guidance
  • Writes tests for Gradle projects using JUnit 5 without requiring the junit-launcher dependency
  • Writes specialized tests for pairs of methods that encode and decode data, as shown in the code snippet below.
@Test
public void testEncryptDecrypt() {
  // Arrange
  EncryptDecrypt encryptDecrypt = new EncryptDecrypt();
  // Act and assert
  assertEquals("secret", encryptDecrypt.decrypt(encryptDecrypt.encrypt("secret"));
}

Diffblue Cover Community Edition is available for use with commercial code

Community Edition allows you to write tests for both open source and commercial code. This means you can now use Diffblue Cover Community Edition at work completely for free. Visit our documentation to learn more about how you can use Diffblue Cover at work, and also see our End-User License Agreement.

Feedback

If you have feedback, questions or requests regarding the Diffblue Cover IntelliJ Plugin, please contact us on the Community Forum. We would love to hear about what is important to you and what you would like to see in upcoming releases.

How do I automatically maintain all of these tests?

Use Diffblue Cover on any CI platform to automatically update your unit tests and catch regressions for every commit - watch this video to learn more.


Full Release Notes

Enhancements

  • Cover now provides warnings if a suboptimal combination of Spring dependencies is present. [Ref: TG-15068]

  • Cover now provides improved output code reporting and further guidance for R005, R008, E016, E017 (now R024), E018 (now R025) and E019 (now R026). [Ref: TG-15066]

  • Cover now writes specialized tests for pairs of methods that encode and decode data. [Ref: TG-15054]

  • Cover now writes tests for Gradle projects using JUnit 5 without requiring the junit-launcher dependency to be added. [Ref: TG-13303]

  • IntelliJ Plugin: Cover now supports IntelliJ IDEA Community Edition 2021.2 and IntelliJ IDEA Ultimate 2021.2. [Ref: TG-14833]

Resolved Issues

  • Resolved an issue which prevented Cover from writing tests for Spring @Configuration classes. [Ref: TG-15111]

  • Resolved an issue which, in some circumstances, caused Cover to write tests which were subsequently discarded by test verification, resulting in W002 output codes being logged. [Ref: TG-14741]

  • IntelliJ Plugin: Resolved an issue which, in some circumstances, provoked an IntelliJ IDEA File is not valid error report. [Ref: TG-13932]

  • IntelliJ Plugin: Resolved an issue which, in some circumstances, provoked an IntelliJ IDEA AssertionError: None error report. [Ref: TG-13076]

Known Issues

  • CLI: dcover clean --failing fails when used with a Gradle project. [Ref: TG-11707]

  • IntelliJ Plugin: Diffblue Cover was unable to create an index error may appear if switching project happens before Cover has finished indexing. [Ref: TG-13772]