Kotest: Folder ".kotlintest" created on every run

Created on 10 Mar 2019  Â·  11Comments  Â·  Source: kotest/kotest

Whenever I run my tests, a ".kotlintest" folder containing an empty "spec_failures" file is created in my project root. I really dislike behaviour like this and don't really understand why the file is created at all if it is empty in the end.
If you have to create it, please at least put it somewhere in the "build" folder.

bug

All 11 comments

We should move it to the build folder, and not write it at all if it's empty.
In the meantime, you can disable it with -Dkotlintest.write.specfailures = false

I think for 3.3.2 we should revert the default behavior on this to be disabled.

This has been fixed in 3.3.2 @Xerus2000

@sksamuel @Kerooker How can I set the path for .kotlintest. I'd like it to be in the build folder.

You can't, yet. You can tun it off though.

On Wed, 31 Jul 2019 at 05:31, henrik242 notifications@github.com wrote:

@sksamuel https://github.com/sksamuel @Kerooker
https://github.com/Kerooker How can I set the path for .kotlintest. I'd
like it to be in the build folder.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kotlintest/kotlintest/issues/720?email_source=notifications&email_token=AAFVSGVYRP655JDK6UO5MRLQCFSWPA5CNFSM4G454WXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3G2HUA#issuecomment-516793296,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFVSGQBFNB6VCPFEDSSSR3QCFSWPANCNFSM4G454WXA
.

I have tried 3.3.3 and 3.4.0, concretely testImplementation("io.kotlintest", "kotlintest-runner-junit5", "3.4.0"). Running ./gradlew test still generates .kotlintest folders.

PS: @sksamuel just a little github tip: Instead of referencing the issue in the title, you can write "fixes #720" into the commit message and the issue will automatically be closed once the commit is merged ;)

This is still not working!

latest, as linked in the Readme

Okay, seems to be working fine now, thanks :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

j-h-a picture j-h-a  Â·  5Comments

Woodz picture Woodz  Â·  4Comments

sksamuel picture sksamuel  Â·  11Comments

stefanneuhaus picture stefanneuhaus  Â·  4Comments

izhangzhihao picture izhangzhihao  Â·  3Comments