Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jvm-test-suite gives a warning in intellij #29780

Closed
fkhantsi opened this issue Jul 1, 2024 · 2 comments
Closed

jvm-test-suite gives a warning in intellij #29780

fkhantsi opened this issue Jul 1, 2024 · 2 comments
Labels
closed:intellij An issue with the IntelliJ IDEA side of things

Comments

@fkhantsi
Copy link

fkhantsi commented Jul 1, 2024

Current Behavior

testing->suites shows a warning

'suites' cannot be applied to '(groovy.lang.Closure)'
image

Expected Behavior

The block should not show any warnings, as it is doing nothing wrong

Context (optional)

I am trying to migrate to jvm-test-suite so I can have my component tests separately from unit tests, but this warning is making it difficult, since it hides any real issues that would arise under the suite.

Steps to Reproduce

Open Intellij.
Create new Java project with gradle and jdk17 and Groovy DSL
Open build.gradle and set to the following

plugins {
    id 'java'
    id 'jvm-test-suite'
}

group = 'org.example'
version = '1.0-SNAPSHOT'

testing {
    suites {
        test {
            useJUnitJupiter()
        }

        integrationTest(JvmTestSuite) {
            dependencies {
                implementation project()
            }

            targets {
                all {
                    testTask.configure {
                        shouldRunAfter(test)
                    }
                }
            }
        }
    }
}

tasks.named('check') {
    dependsOn(testing.suites.integrationTest)
}

Gradle version

8.6

Build scan URL (optional)

No response

Your Environment (optional)

Each of:
Intellij IDEA Community 2023.3
Intellij IDEA Community 2024.1
Intellij IDEA Ultimate 2023.3
Intellij IDEA Ultimate 2024.1

Windows 11/Windows 10
JDK 17

@fkhantsi
Copy link
Author

fkhantsi commented Jul 1, 2024

@ov7a
Copy link
Member

ov7a commented Jul 3, 2024

This is an issue with IntelliJ IDEA’s Gradle integration, which is developed by JetBrains and cannot be addressed in the Gradle Build Tool project. We cannot just move the issue.

Please open such IntelliJ-related issues on the JetBrains Issue Tracker at https://youtrack.jetbrains.com/newIssue?project=IDEA.

If you believe this is not an IntelliJ IDEA issue, please update with a reproducer that clarifies this.


FTR, test suite is an incubating feature.

Please provide a reproducer if affects you outside of an IDE.

@ov7a ov7a closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2024
@ov7a ov7a added closed:intellij An issue with the IntelliJ IDEA side of things and removed a:bug to-triage labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed:intellij An issue with the IntelliJ IDEA side of things
Projects
None yet
Development

No branches or pull requests

2 participants