This might be a silly question but…
Using Android Studio 3.0 Canary 1:
Create new android project with kotlin support.
Change the assertion in ExampleUnitTest to assertEquals(5, (2 + 2).toLong())
From the command line ./gradlew clean test
The build does not fail and the kotlin unit test does not appear to run. It does run (and fail) from inside Android Studio.
The kotlin instrumented test works from the command line, just not the kotlin unit test.
What am I doing wrong, does something else need to be added to the build.gradle or the test class?