I have two files, a main file and a test file. Each file just has a main method in it, no actual class definition. Is it possible to reference the main method from the main file in the test main method?
src/main/kotlin/com/skater901/MyApp.kt
package com.skater901
fun main(args: Array<String>) {
// run my app
}
src/test/kotlin/com/skater901/RunLocal.kt
package com.skater901
fun main(args: Array<String>) {
// setup code for local debugging
com.skater901.MainKt.main(args) <--- MainKt is red
com.skater901.Main.main(args) <--- Main is red
}
Is there actually a way to do this, or do I have to make one of these files have an actual class in it, so the path to the method is different?