“Test events were not received” when run tests using Intellij

前端 未结 13 2299
花落未央
花落未央 2021-02-06 21:11

I have a Kotlin project and when I run my JUnit tests, I can\'t see tests execution result in IntelliJ and get this message instead:

test events were not

13条回答
  •  旧巷少年郎
    2021-02-06 21:41

    your most likey not tellinig the system how to run the tests.

    on your class header define a test runner like this for example:

    @RunWith(MockitoJUnitRunner::class)
    class MYTest {//...}
    

    or can define junitX runner , etc

提交回复
热议问题