Thanks Andor, I tried that before but got some errors (still trying to
figure out what those errors mean). Any chance you can have a concrete
canonical example that execute a real single test via maven?

On a side note, "mvn test" works for me which ran all tests, when executed
under root zookeeper folder.

On Fri, Sep 20, 2019 at 2:11 PM Andor Molnar <[email protected]>
wrote:

> Even better to do a quick google search:
>
>
> https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html
>
> mvn -Dtest=TestCircle#mytest test
>
> Andor
>
> On Fri, Sep 20, 2019 at 11:08 PM Andor Molnar <[email protected]> wrote:
>
> > I usually use:
> >
> > mvn verify -Dtest=bar
> >
> > Which runs the entire testcase. Not sure about how to run single test
> > method.
> >
> > Andor
> >
> >
> >
> > On Fri, Sep 20, 2019 at 11:05 PM Michael Han <[email protected]> wrote:
> >
> >> In ant, we can execute a single test "foo" in a test case "bar" like
> this:
> >>
> >> *ant -Dtestcase=bar -Dtest.method=foo*
> >>
> >> What's the corresponding maven command?
> >>
> >> Cheers
> >> Michael.
> >>
> >
>

Reply via email to