Classes and methods marked with an access modifier internalwill work from the current versions of Kotlin, Gradle, as well as Intellij to access these methods from test classes. The tools consider the main and test source paths as part of the same module.
Have you tried this before? And if this fails, you should report an error, as it has already been reported, fixed and should be in order in any current version.
source
share