Once you "cd" into "runners/direct-java" you can use:

"mvn test -Dtest=RegexTest
-DdependenciesToScan=org.apache.beam:beam-sdks-java-core"

-Stas

On Thu, Dec 29, 2016 at 8:27 PM Jesse Anderson <[email protected]>
wrote:

> I tried that one already. It gives a no tests run error. If you bypass that
> error with -DfailIfNoTests=false, no tests get run at all.
>
> On Thu, Dec 29, 2016 at 10:20 AM Jean-Baptiste Onofré <[email protected]>
> wrote:
>
> > Hi Jesse
> >
> > Mvn test -Dtest=RegexTest
> >
> > Should work
> >
> > Don't forget the test goal. And no need to provide the fqcn.
> >
> > Regards
> > JB⁣​
> >
> > On Dec 29, 2016, 18:55, at 18:55, Jesse Anderson <[email protected]>
> > wrote:
> > >Does anyone know the Maven way to run a specific unit test with Beam?
> > >I've
> > >tried:
> > >mvn -Dtest=org.apache.beam.sdk.transforms.RegexTest
> > >-DfailIfNoTests=false
> > >-Dgroups="org.apache.beam.sdk.testing.NeedsRunner" -pl
> > >org.apache.beam:beam-sdks-java-core test
> > >
> > >The test still doesn't run. Does anyone know what I'm missing?
> > >
> > >Thanks,
> > >
> > >Jesse
> >
>

Reply via email to