The --tests syntax works well for me. Thanks!

On Fri, Sep 30, 2016 at 4:18 PM, Jared Stewart <jstew...@pivotal.io> wrote:

> I don’t know why that happens, but I believe -Dtest.single has been
> deprecated in favor of --tests which lets you specify a test class pattern
> to match against.  The following works for me:
>
> ./gradlew geode-core:test --tests *QueryDataFunctionApplyLimitClauseTest
>
> (Note that the * is necessary above to avoid having to fully qualify
> org.apache.geode.management.internal.beans.QueryDataFunctionApplyLimitCla
> useTest.)
>
> Best,
> Jared
>
>
> > On Sep 30, 2016, at 4:03 PM, Kirk Lund <kl...@apache.org> wrote:
> >
> > Does anyone know why "buildSrc:test" executes when I try to execute
> > "geode-core:test"? See my output below. Instead of executing
> > "geode-core:test", gradle executes "buildSrc:test" and fails with "Could
> > not find matching test for pattern" -- I think there's something broken
> in
> > our gradle files.
> >
> > Thanks,
> > Kirk
> >
> > <klund@pdx2-office-dhcp32>/Users/klund/dev/geode [530]$ find . -name
> > QueryDataFunctionApplyLimitClauseTest.java
> > ./geode-core/src/test/java/org/apache/geode/management/internal/beans/
> QueryDataFunctionApplyLimitClauseTest.java
> >
> > <klund@pdx2-office-dhcp32>/Users/klund/dev/geode [531]$ ./gradlew
> > geode-core:test -Dtest.single=QueryDataFunctionApplyLimitClauseTest
> > :buildSrc:compileJava UP-TO-DATE
> > :buildSrc:compileGroovy UP-TO-DATE
> > :buildSrc:processResources UP-TO-DATE
> > :buildSrc:classes UP-TO-DATE
> > :buildSrc:jar UP-TO-DATE
> > :buildSrc:assemble UP-TO-DATE
> > :buildSrc:compileTestJava UP-TO-DATE
> > :buildSrc:compileTestGroovy UP-TO-DATE
> > :buildSrc:processTestResources UP-TO-DATE
> > :buildSrc:testClasses UP-TO-DATE
> > :buildSrc:test FAILED
> >
> > FAILURE: Build failed with an exception.
> >
> > * What went wrong:
> > Execution failed for task ':test'.
> >> Could not find matching test for pattern:
> > QueryDataFunctionApplyLimitClauseTest
> >
> > * Try:
> > Run with --stacktrace option to get the stack trace. Run with --info or
> > --debug option to get more log output.
> >
> > BUILD FAILED
> >
> > Total time: 0.62 secs
> > <klund@pdx2-office-dhcp32>/Users/klund/dev/geode [532]$
>
>

Reply via email to