intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Diff Comparison Result does not work when running tests with PS type

Open rentalhost opened this issue 2 years ago • 2 comments

Describe the bug When using the new intellij.type as PS, the tests lose the ability to compare with the original test object.

To Reproduce https://github.com/hammer-tools/laravel-hammer/tree/test-broken

Expected behavior When the IU type is used, when inspection tests fail the test output is compared to the original test object. This makes it easy to accept the test result as valid. However, after upgrading to PS type this ability is lost. It is expected to work exactly with the UI.

With PS type:

image

With IU type:

image

Workaround:

In the build.gradle.kts file, keep the main type as PS in intellij.type.

intellij {
    type.set("PS")
    /** ... */
}

In the same file, redefine these parameters in the test task:

tasks {
    test {
        intellij { type.set("IU") }
        /** ... */
    }
    /** ... */
}

Environment:

  • OS: Windows 11
  • Gradle IntelliJ Plugin Version: 1.8.0
  • Gradle Version: 7.5.0

rentalhost avatar Aug 05 '22 02:08 rentalhost

In fact, the above workaround doesn't solve the problem, it just supersedes the root value and, in practice, the runIde occurs in the IU instead of the PS due to the value being overwritten. :'(

rentalhost avatar Aug 05 '22 03:08 rentalhost

Thank you for the report, I've reproduced the issue.

MaXal avatar Aug 05 '22 08:08 MaXal