Gradle not calling jacoco?

Jacoco is working as expected when I do ./gradlew test. The .exec file is being generated.
In eclipse, it shows that the dependency of jacocoAgent is being resolved…

However, when I try creating a new task with type Test, the exec file is not being generated. Eclipse does not show that the dependency of jacocoAgent being resolved. From the documentation, it seems like jacoco should be called for all tasks of type Test.

I’ve been looking all over for a solution, reading documentation and forums, but can’t seem to find the answer. I must be overlooking something simple. Can anyone help out? Thanks!