Hi, quick question, I saw some <discussions> that ...
# kotest
e
Hi, quick question, I saw some discussions that there was a plan to include a
JunitXmlReporter
implementation for non-JVM targets for 6.0.0. I guess it didn't make it in, is it still on the radar?
s
It exists in the codebase actually. Which target are you using ?
e
I'm using JS / Node as a target
s
you should be getting the xml reports from that target through the normal kotlin support
see the kotest-example project
e
Sorry, I'm not following exactly. I'm looking here: https://github.com/kotest/kotest-examples/tree/master/kotest-javascript.
JunitXmlExporter
is not explicitly used. Are you saying the code in this example outputs in the JUnit XML format?
s
yes, it should give you the xml foramts in target/test-results without the explicit junit xml exporter
because the built in kotlin jsNodeTest task does it for us
e
Got it, thank you!
s
I'm trying to include it as a dependency, and am having issues with the following platforms: • iosArm64 • iosSimulatorArm64 • iosX64 • js • linuxArm64 • linuxX64 • macosArm64 • macosX64 • mingw • mingwX64 • tvosArm64 • tvosSimulatorArm64 • tvosX64 • wasmJs • watchosArm32 • watchosArm64 • watchosSimulatorArm64 • watchosX64 basically everything other than the jvm platform. it just says that it cannot resolve the dependency:
Copy code
:kt-string-similarity:iosArm64Test: Could not resolve io.kotest:kotest-extensions-htmlreporter:6.0.0.M4.
Required by:
    project ':kt-string-similarity'
    project ':kt-string-similarity' > project :common-test

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
the same also happens with the html reporter extension and the allure extension.
from my use, I have not found the js platform to generate these reports. it seems that the js node platform does generate them, but the js browser platform does not.
if these extensions are jvm only, then it really should be mentioned on their pages.