intellij-platform-gradle-plugin
intellij-platform-gradle-plugin copied to clipboard
Diff Comparison Result does not work when running tests with PS type
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:
With IU type:
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
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. :'(
Thank you for the report, I've reproduced the issue.