Jesse Buss
Jesse Buss

Reputation: 843

Running unit tests doesn't catch changes

I'm going through the kotlin koans repo (https://github.com/kotlin/kotlin-koans). Whenever I make changes to my .kt files and run the unit tests, the changes in the .kt files aren't reflected in the test results. I've been getting around this by running ./gradlew build before running the unit tests.

I'm using Android Studio as my IDE. Any idea what's happening?

Upvotes: 4

Views: 289

Answers (1)

m.myalkin
m.myalkin

Reputation: 1158

There is bug in Android studio. https://github.com/Kotlin/kotlin-koans/issues/90 https://youtrack.jetbrains.com/issue/KT-18948

When you are running test, project doesn't recompile. You should build project and then run tests again.

Upvotes: 2

Related Questions