-
Notifications
You must be signed in to change notification settings - Fork 52
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
Html report creation hangs #509
Comments
Hi, |
Yeah it happens consistently, both locally and in the pipeline |
I've narrowed down the issue I was having, all works fine normally, but by including just this
Is causing the hanging, which is in a Kotlin JVM module (note I've not added any code changes) |
@ben-gooding-sky , please, try |
Sadly getting a different error on
Then this x20+ times: (all exactly the same error)
From my understanding for multi-platform projects it should be enough to have these 2 configs in my
and
and the |
As far as I understand, this error occurs to you if you call the |
both |
and both of those have the same error |
To create the correct configuration, it was useful to understand the structure of the build. Is your project closed or open source? |
It's closed, but I've created a similar project here that has the same issue that is open 😄 https://github.com/ben-gooding-sky/kover-bug-example I was using this command to quickly delete the report each time + re-run kover If you change the version back down to (note this example project doesn't show the initial hanging error I was having on |
Thanks for the example. In the case of complex cases, it is necessary to adhere to the following rules:
in projects
for example, in the root project (let's call it a merging project)
|
Perfect thank you! - yes this got it all working (+ ktor no longer causes it to hang) added this to my
and stripped out everything from my
|
I think we also should specify these recommendations in Kover docs |
@ben-gooding-sky Thanks a lot for sharing this script! It's really helpful and should be part of the documentation. We can also now generate merged reports at least for all android projects. But my main question still remains and I could not find a clear answer on that: Is it possible to create ONE report file that contains the result of both android and jvm modules? So far the only solution I get to work it to call two gradle tasks:
While this is is okay-ish, it would make things alot easier to have everything in one place. |
@florianflmeyer The configuration I used does work for for both Android/Jvm targets in one report using
Mentioned here in their docs |
To combine Android and JVM projects, an additional configuration in root project was needed. Please see: - Kotlin/kotlinx-kover#522 (comment) - Kotlin/kotlinx-kover#509 (comment)
Describe the bug
In a multi-module kotlin-only, kotlin-android project the coverage report job hangs forever
The tests all pass correctly, but once it gets to the
kover
portion it hangsErrors
Expected behavior
It should pass almost straight away after the file not found bug occurs
Reproducer
Can't reproduce this currently on a fresh project, but occurs with
./gradlew :kover:koverHtmlReport
Reports
If applicable, report files or screenshots.
Environment
The text was updated successfully, but these errors were encountered: