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
Pitest/JUnit5 issue using a Kotlin DSL Gradle script #7
Comments
I'm getting the same error.
So it seems like a kotlin issue? |
Guys, you can provide a minimal project with PIT and Kotlin configuration reproducing that issue. Maybe I will be able to find a reason and use that project as a functional test to prevent regressions (currently I don't test gradle-pitest-plugin with Kotlin, but it is on my todo list - szpak/gradle-pitest-plugin#59). |
So I was working on providing the minimal project yesterday, and came across #8, which it turns out is the cause of my error as my kotlin module is a submodule. Adding the dependency to the root module solved the error.
Running |
Any update on this? The plugin appears to work fine, but it fails to run any tests (it finds them), though I get errors about jupiter.
|
Here we go - JDK 11, Gradle 4.5.1 (Kotlin DSL), JUnit Jupiter import info.solidsoft.gradle.pitest.PitestPluginExtension
plugins {
java
}
java {
sourceCompatibility = JavaVersion.VERSION_11
}
buildscript {
val pitest = configurations.maybeCreate("pitest")
dependencies {
classpath("info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.4.0")
pitest("org.pitest:pitest-junit5-plugin:0.9")
}
}
apply(plugin = "info.solidsoft.pitest")
configure<PitestPluginExtension> {
testPlugin = "junit5"
}
repositories {
mavenCentral()
}
dependencies {
val mockitoVersion = "2.28.2"
testImplementation("org.junit.jupiter:junit-jupiter:5.4.2")
testImplementation("org.assertj:assertj-core:3.12.2")
testImplementation("org.mockito:mockito-core:$mockitoVersion")
testImplementation("org.mockito:mockito-junit-jupiter:$mockitoVersion")
} |
@yanivnahoum Does it reproduce the problem or it just works fine? :) |
Works great 😊 |
@EGI-OCTO Can this issue be closed? |
I don't have that between my priorities right now to be honest. So I'd say
let's close it and if it's still a problem for someone, it will reappear
one way or another.
Thank you 🙏
Le mar. 25 févr. 2020 à 22:24, Marcin Zajączkowski <notifications@github.com>
a écrit :
… @EGI-OCTO <https://github.com/EGI-OCTO> Can this issue be closed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7?email_source=notifications&email_token=AII3MOUXSQW5PNJM3FISP3TREWEANA5CNFSM4FFRCZ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM5RYXY#issuecomment-591076447>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AII3MOTZXADQ47TLSY7AOCDREWEANANCNFSM4FFRCZ6A>
.
|
Ok. I asked as there is a working example of PIT + Gradle with Kotlin (which is also a part of the functional tests in gradle-pitest-plugin), so in general it works. You might encountered some corner case. Or maybe it was already fixed. P.S. Please close this issue as the creator (I bumped into it once looking for problems with PIT and Gradle in the Internet :-) ). |
Hi,
I'm looking fowarward to using pitest on a kotlin/Junit5/Springboot2 api which builds with help of a Kotlin DSL Gradle script.
I converted the Groovy DSL configuration : (that I found here : https://gradle-pitest-plugin.solidsoft.info/)
into the Kotlin DSL (there's a bunch of springboot related stuff, but I think all is here):
And I run into the following error :
So I guess there's something I configured wrong with the plugin (it suppose to make pitest jUnit5-compatible right ?)...
Any idea ?
Thank you in advance !
The text was updated successfully, but these errors were encountered: