ManApart
06/01/2022, 11:49 AM:cleanJvmTest :jvmTest
passes the tests, but doing a junit 'all in package' (or running the jvm main file/entry point) test fails with an error that seems to indicate that the expect / actual classes aren't being correctly understood. I get a bunch of errors like the one below, despite the IDE finding the corresponding declarations / gradle-run tests passing.
\src\jvmMain\kotlin\core\history\SessionHistory.kt:9:15
Kotlin: Actual object 'SessionHistory' has no corresponding expected declaration
I'm wondering if I need to modify the run configuration somehow to understand the module structure?
I've done a hello world project with the same setup of having a jvm main call code in common that has expect/actual and it worked as I expected. So I assume I've done something wrong with this more complicated setup. I realize this is a more vague ask but would appreciate any pointers of things to track down. Thanks!ManApart
06/01/2022, 11:56 AMManApart
06/01/2022, 11:56 AMManApart
06/01/2022, 11:58 AMManApart
06/01/2022, 12:18 PM@file:JvmName("QuestCommand")
at the top of my main file fixed running the main in the ide. I wonder if I can do something similar for the unit tests.ManApart
06/01/2022, 12:23 PM