"Test events where not received" in IntelliJ IDEA File -> Settings ->Build,Execution, Deployment -> Build Tools -> Gradle Run test using: select option as: IntelliJ IDEA