Broken pipe error when running Gradle test

前端 未结 4 1753
隐瞒了意图╮
隐瞒了意图╮ 2020-12-19 13:35

I\'ve got a problem regarding running tests in gradle. I know that in other machines my gradle config works but in mine unfortunately not. We have got junit test and testNG

相关标签:
4条回答
  • 2020-12-19 13:38

    You really don't need to disable or remove COMODO Antivirus. Just do the following steps:

    1. Go to COMODO Client Panel
    2. Open the Advanced Tasks option under the Task menu.
    3. See all active tasks and select the Gradle process that is being blocked.
    4. Right click on the task and 'Add to Trusted Files'
    0 讨论(0)
  • 2020-12-19 13:51

    I got this same error, except it said Gradle Worker 2. I restarted my command line (powershell) and then tried to build again with gradle and it worked. I had changed my environment variables to point to the Java version the project was expecting and had not thought to restart- not sure if that had anything to do with it.

    0 讨论(0)
  • 2020-12-19 13:59

    I faced the similar issue while running the test classes. I can able to build the project, but I couldn't able to run, so after some research I found one of the solution, which is to remove the some of the workerThread-jar from the .gradle/cache folder. I tried and it worked for me. You can use below commands to solve this.

    1. In terminal I invoked gradle test --info command,

    In response, I receive the logs, where I searched the for the

    Gradle worker Daemon

    key, to fetch the location of my gradle-worker.jar. Typically in windows you can find this under the following location C:\Users\.gradle\caches\\workerMain\gradle-worker.jar.

    To fix this, one approach is to remove the the workerMain folder itself, and run the test classes.

    0 讨论(0)
  • 2020-12-19 14:05

    Whew, after whole day struggling with gradle I think I've finally found what cause problems. Guilty of that was antivirus - COMODO. After uninstalling it and installing another one, everything started to working fine. So all Gradle Users - please be careful with COMODO because even disabled, it could cause problems when using Gradle . Be aware :)

    0 讨论(0)
提交回复
热议问题