I have a 1.4.10 multiplatform library, targeting for now js(LEGACY) and jvm, with a rather standard build script using the kotlin DSL. Since it’s a library, I don’t have any main()
function.
I have some questions about the jsBrowserTest
task:
- Where is it originally defined? Grepping the whole kotlin and gradle sources didn’t help. I saw some references to metacity in the gradle debug logs.
- I understand it is launching a (potentially headless) browser, chosen in the js karma (I’ve read somewhere that it’s best to use a chrome family browser for js maps to properly work). But on which address? If I were to inspect the http traffic with a tool like wireshark or tcpdump, which localhost port should I watch?
- If I have a resource located in
src/commonTest/resources
, it’s visible in the classpath for thejvmTest
task ; but how to get hold of it for thejsBrowserTest
? I guess it would involve some ajax call, but towards which URI? Does it involve something like a tests webpack or so? - Is remote debugging supposed to work with latest versions of Intellij Idea? Using chromium, the debugger seems to hang when running
jsBrowserTest
. Can it be so because on my ubuntu, chromium is installed by snap?
Thanks.