Android, test projects, and modules



We have an android application written in Kotlin. We have a bunch of classes with internal visibility and/or constructors in hopes to refactor the project into modules into the future and not expose all the implementation details. With the M14 and v1 beta releases our tests have broken because we cannot call those internal constructors from the test project.

The work arounds I see are to just change all internal references to public or to use java reflecttion to call the internal constructors. Both solutions are less than ideal.  

Is there a ways to get the tests to be part of the same module. It would seem that this is a desirable feature to increase testibility of internal members / methods.




Hi, This issue was already fixed in kotlin 0.1-SNAPSHOT and will be available in the next kotlin version. There is an issue in our tracker