HI, I’m trying to use kotest for the 1st time as i...
# kotest
m
HI, I’m trying to use kotest for the 1st time as it looks very promising. However, with the following test
Copy code
package com.bethesomm.firebase.auth

import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.ints.shouldBeExactly


class FirebaseUserTest : FunSpec({

    test("should do whatever") {
        "hello".length shouldBeExactly 5
    }
})
I have the following error message
[java.lang.ClassNotFoundException: com.bethesomm.firebase.auth.FirebaseUserTest]
Did I miss something? FYI, I’m using the version 4.4.0.RC2
s
are you running from gradle or intellij
m
intelliJ (Android Studio to be more accurate). And I installed the plugin
s
sometimes Android Studio gets a bit confused and doesn't do a build first, so try forcing a build, by going to Build -> Rebuild Project
m
trying right now. Will report back after build is complete
Exact same problem
s
hmmm not sure then
your code is fine, it should just run
but it definitely sounds like build / classpath issues
m
gradle works though 😞
im gonna restart the IDE. I haven’t after I installed the plugin
s
worth a try
it might be Android studio related, I only use intellij personally, so not familar with AS. Maybe some other user who is an android dev will have some tips.
m
it worked after restarting the IDE. I feel dumb 😞
s
oh wow
well there we go
m
ok I actually have other problems now 😞 Every time I change a test or add a new test, I have to rebuild the project. Is it something you experienced?
otherwise it reruns the tests as if no changed happened
s
No, it works fine for me.
We need an AS user to figure that out
m
is there a gradle plugin I should add or something?
s
That has the gradle setup instructions
m
ok I posted this in the main channel so it has more visibility. Hopefully android studio users will see it 😕