Add custom test jar dependency to gradle project

Hello There,

I need help on adding a custom test jar as a dependency to my gradle module, I have the jar in both maven and gradle versions, but after adding them in build.gradle can see as dependency added in eclipse dependencies folder along with their transitive jars, but the test cases are not detecting when a build is run with test enabled, tried with both maven and gradle jar, someone who knows how to do it in a best way, thanks in advance!!!