Control task execution thread

Hello, guys,

Sometimes during my tests execution(it counts in hours), if one of tests hanges. Execution also hangs on it.

Is there any way to control execution time or thread of the task or something? Maybe gradle have some configurations to break the task execution if time is exceeding some limit?

Currenlty I decided to implement task inside buildSrc, and control it execution with basic JavaMultiThreading control, something like count time, if time for task execution is to much thatn throw GradleException, to make script continue to next task.

The ‘Test’ task does not provide a timeout option at the moment. If you are interested in having the feature, voting on GRADLE-1020 will increase the likelihood of it being implemented.

thanks for reply, and a link )