https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
y

yusuf3000

03/22/2018, 11:17 AM
I’ve written some unit tests for my common code, but the class I’m testing is internal and it’s throwing an error because of this. The test and the class it’s testing are both in the same package. Is it only possible to test public classes?
e

elizarov

03/22/2018, 12:26 PM
It does not matter if they are in the same package or not. Internals are visible to tests. There should be something else. Do you have a multiplatform project? Do you see an error in IDE? Does it work from Gradle?
i

ilya.gorbunov

03/22/2018, 12:29 PM
y

yusuf3000

03/22/2018, 1:00 PM
@elizarov Yes Roman, I have a multiplatform project. I don’t see an error in the IDE, only when i run
./gradlew test
.
@ilya.gorbunov do you when this bug will be resolved?
2 Views