unbroken-dome / gradle-testsets-plugin

A plugin for the Gradle build system that allows specifying test sets (like integration or acceptance tests).
MIT License
230 stars 50 forks source link

Output path not specified when used with errorprone and IntelliJ #93

Closed ajsutton closed 4 years ago

ajsutton commented 4 years ago

When a custom test set is added via this plugin, errorprone is being used and the project is imported into IntelliJ using it's standard gradle import, compilation fails because "the output path is not specified for module".

A simple replication case is available at https://github.com/ajsutton/intellij-import-bug/tree/5c74b822baee073da52352c6ddef78bf9799f3ee

ajsutton commented 4 years ago

One further note, you may need to set "Build, Execution, Deployment -> Build Tools -> Gradle" to "Build and run using: IntelliJ IDEA" and "Run tests using: IntelliJ IDEA" to reproduce this.

ajsutton commented 4 years ago

https://youtrack.jetbrains.com/issue/IDEA-225694 tracks this from the IntelliJ side and it's probably more their bug so happy if you want to close this.

The compilation works again in IDEA 2019.3 EAP but it marks the test sources as production whereas 2019.2 marked them as tests (which was a really nice side-effect of using this plugin vs setting up the source sets manually).