I recently migrated my development environment from Mac to Windows.
After installing Windows version of IntelliJ IDEA 2020, I imported my project from bitbucket and ran a test.
All of a sudden, the test failed with a message saying “Test events were not received”.
I resolved this issue with the following step.
- Remove two directories called “.idea” and “.gradle” in the project root directory.
- Reopen the project and open the IntelliJ Setting (File -> Settings).
- Go to the Gradle setting (Build, Execution, Development -> Build Tools -> Gradle), and change “Run tests using: Gradle” to “Run tests using: IntelliJ IDEA”. By default, it’s gradle.
- Add the following line to the “.idea/workspace.xml” file.
You should add this under the component named PropertiesComponent.
<component name=PropertiesComponent">
<property name=”dynamic.classpath” value=”true” />
<property name=.../>
...
</component>
Above modification will resolve the too long command line issue.
Done. Run the tests and see if it works!