Open igordmn opened 1 year ago
Running into this as well with test failures with kotlin-js node.js tests (mocha). Works in gradle 7.5.1, broke in gradle 7.6.0. Looks like some internal gradle APIs changed?
This is how we configure the javascript build:
js(IR) {
nodejs {
testTask {
useMocha {
timeout = "20000"
}
testLogging.showStandardStreams=true
}
}
}
any simple test that fails should reproduce this
import kotlin.test.Test
class TestIt {
@Test
fun fail() {
error("oops")
}
}
Unable to find method ''void org.gradle.api.internal.tasks.testing.TestResultProcessor.failure(java.lang.Object, java.lang.Throwable)''
'void org.gradle.api.internal.tasks.testing.TestResultProcessor.failure(java.lang.Object, java.lang.Throwable)'
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Rolling back to gradle 7.5.1 fixes things.
I have exactly the issue with kotlin-react. Downgrade to Gradle 7.5.1 fixed the error.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Moved from https://youtrack.jetbrains.com/issue/KT-55779
What steps will reproduce the issue?
Project attached
/gradlew jsNodeTest
What is the expected result?
The Gradle test task passes or fails
What happens instead?