In my unit tests I use Kotlin's backticked methods for better readability, e.g.
@Test fun `Foo should return bar`()
It works nice and well for tests in <module>/src/test
directory, but when I try to do the same in <module>/src/androidTest
I get an exception:
Error:java.lang.IllegalArgumentException: bad descriptor: Lcom/packageName/MainActivityTest$Foo should return bar$1;
Error:Execution failed for task ':sample:transformClassesWithDexBuilderForDebugAndroidTest'. > com.android.build.api.transform.TransformException: org.gradle.tooling.BuildException: com.android.dx.cf.iface.ParseException: bad descriptor: Lcom/packageName/MainActivityTest$Foo should return bar$1;
有什么诀窍可以让它起作用吗?