https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

egorand

06/20/2019, 7:00 PM
is any configuration required to enable JS test runner in a multiplatform project on 1.3.40? I’m looking into
build/reports/tests/allTests
after running
check
and I can only see tests executed on
jvm
and
macosX64
e

egorand

06/20/2019, 7:02 PM
hmm, looking into executed tasks I can see that
jsTest
was invoked but reported
NO SOURCE
@louiscad thanks, looking
could be KT-32111
j

Jurriaan Mous

06/20/2019, 7:21 PM
I think both issues are the same as I also get no source for js. What is your macosX64 setup since it won’t run for me either?
e

egorand

06/20/2019, 7:23 PM
I guess the only thing worth noting is this
Copy code
nativeTest {
  dependsOn commonTest
}
adding the same config to js doesn’t help
s

snrostov

06/21/2019, 5:45 AM
@egorand Could you please show your build script? Actually
jsTest
is test report task which aggregates test results of
jsBrowserTest
and
jsNodeTest
which, in turn, can be configured by adding this lines:
Copy code
js {
   browser()
   nodejs()
}
Without this lines
jsTest
has no tests to aggregate, so it is reported as
NO SOURCE
. Probably we should add some warning in this case. Will think about this.
👍🏽 1
3 Views