I am not able to run my tests in commonTest. Am I ...
# multiplatform
a
I am not able to run my tests in commonTest. Am I missing some setup in configuration in Android studio?
v
I can’t run them either
s
Testing support in the IDE is very flaky right now. You’ll have to rely on the command line for runnign your tests.
👍 2
b
intellij > as for kmp
a
Thanks @saket that worked 🙂
e
If you make your common test
abstract
you can extend it inside
androidTest
(this being the source set where you have android specific tests) and it will run from Android Studio.
👍 1
j
small side note, someone can correct me if i just did something wrong, but if you’re going to be targeting js, your tests won’t compile with ` in the function names (illegal character). i used underscores to get around that
s
would that be the case for all non-JVM targets?
j
not quite sure, maybe someone else can chime in, i’m only targeting jvm/js right now 🙂
e
You can still use the ` notation and use
@JsName()
to specify a test name for JS targets
They explain how to do it here since the original
@JsName
is not part of the common module
j
thank you!
👍 2