-
Notifications
You must be signed in to change notification settings - Fork 25
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
Use of "withEnvironment" extension function works when playing a spec class, but not an individual leaf #250
Comments
@zakhenry the Gradle configuration will only take effect when tests are invoked using Gradle. When running an individual test, Kotest IntelliJ plugin will not invoke the test with Gradle, so the Once #178 is fixed, you could configure IntelliJ to run tests with Gradle and this would work for individual tests as well. |
Have you thought about using the kotest.properties setting ?
…On Fri, 21 Apr 2023 at 17:23, Emil Kantis ***@***.***> wrote:
@zakhenry <https://github.com/zakhenry> the Gradle configuration will
only take effect when tests are invoked using Gradle.
When running an individual test, Kotest IntelliJ plugin will *not* invoke
the test with Gradle, so the --add-opens is not applied.
—
Reply to this email directly, view it on GitHub
<#250 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVSGWSTLVWXWC7K55IXJTXCMCHPANCNFSM6AAAAAAXALPV64>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Ah yes this is a good solution thanks, doc ref for future reference: https://kotest.io/docs/intellij/intellij-properties.html |
'withEnvironment' still doesn't work in kotest 5.5.5. |
Could someone add an example what we need to put into |
for example with the following spec file:
if I play the line
1
the test passes, however if I play2
or3
the test fails withKotest
5.5.2
and plugin version1.3.68-IC-2023.1
. I do have the following lines in build.gradle.ktsThe text was updated successfully, but these errors were encountered: