Skolson5903
08/23/2020, 10:41 AMbuild\intermediates\java_res\debugUnitTest\out;
build\tmp\kotlin-classes\debugUnitTest;
build\intermediates\java_res\debug\out;
build\tmp\kotlin-classes\debug;
None of these directories have the jvmTest classes in them after running gradle task jvmTestClasses. I dug around, and the unit tests all compiled to here:
build\classes\kotlin\jvm\test
What controls which directories get put in the classpath from the gradle build when doing a run or debug? Is this a Kotest plugin thing, or do I have something wrong in my gradle setup? Thanks in advance for any help. BTW this is AndroidStudio and I'm currently running the snapshot plugin 1.1.0-SNAPSHOT-IC-2019.3Skolson5903
08/23/2020, 10:45 AMbuild\classes\kotlin\jvm\main
so both directories would need to be on the classpath for the test to run.Skolson5903
08/23/2020, 11:04 AMioCommon\build\intermediates\java_res\debugUnitTest\out;
ioCommon\build\tmp\kotlin-classes\debugUnitTest;
ioCommon\build\intermediates\java_res\debug\out;
ioCommon\build\tmp\kotlin-classes\debug;
Classpath entry in Edit Configurations: "ioCommon_jvmTest" has one local directory in classpath of debugger:
ioCommon\build\classes\kotlin\jvm\main;
Unfortunately it doesn't have
ioCommon\build\classes\kotlin\jvm\test;
for some reason, so test doesn't work by manually changing the classpath entry. No luck there, so outside of adding a gradle hack to copy the compiled classes to one of the subdirs on the module classpath, I'm stuck :-)sam
08/23/2020, 1:03 PMsam
08/23/2020, 1:03 PMSkolson5903
08/23/2020, 5:51 PMsam
08/23/2020, 5:52 PMbuild\classes\kotlin\jvm\test
does seem right actually, that's where kotest's own MPP build puts themsam
08/23/2020, 5:54 PMsam
08/23/2020, 5:54 PMSkolson5903
08/23/2020, 5:56 PMsam
08/23/2020, 5:56 PMsam
08/23/2020, 5:56 PMsam
08/23/2020, 5:57 PMsam
08/23/2020, 5:57 PMSkolson5903
08/23/2020, 5:58 PMsam
08/23/2020, 5:58 PMsam
08/23/2020, 5:59 PMSkolson5903
08/23/2020, 5:59 PMsam
08/23/2020, 5:59 PMsam
08/23/2020, 6:00 PMSkolson5903
08/23/2020, 6:00 PMsam
08/23/2020, 6:00 PMsam
08/23/2020, 6:01 PMsam
08/23/2020, 6:01 PMSkolson5903
08/23/2020, 6:02 PMsam
08/23/2020, 6:03 PMSkolson5903
08/23/2020, 6:03 PM