IntelliJ reports errors in testng.xml after swtiching from Maven to Gradle

42 Views Asked by At

Since I'v swtitched from Maven to Gradle, IntelliJ reports errors in all my TestNG .xml configuration files. It seems to be unable to find location of my custom listeners classes as in attached picture.

xml errors

It is however, somehow able to provide autocompletion:

autocompletion

My build.gradle mentions that config files are not in root but in /testng folder:

test {
    useTestNG() {
        suites 'testng/' + System.getProperty('suiteFile', 'testng.xml') ?: 'testng.xml'
    }

    systemProperties(System.getProperties())
}

It's been like that for few months now, I am not sure what can I do about it besides switching off error notifications?

0

There are 0 best solutions below