Somehow all of my tests stopped seeing `internal` ...
# getting-started
l
Somehow all of my tests stopped seeing
internal
members of the tested classes (even though they are in the same Gradle module). Generally I made some changes which currently broke the build, but they are not related to the internal function/properties. So the project indeed should not build, but the error message is definitely a false positive.
internal_not_visible_in_tests.png
(here an internal class is not visible from test in the same module)
Android Studio Electric Eel 2022.1.1 Beta 4 Kotlin 1.7.20
y
Temporarily, you can add
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
to the top of the file
e
is it a KGP bug or an IDE bug? (if it works from a command-line Gradle build, then it's not a KGP bug)
l
It is definitely an IDE bug, because the tests build and run correctly.