maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Surefire unable to find "bar" test method when passed -Dtest=Foo#bar
Date Tue, 01 May 2012 21:56:02 GMT
On 1 May 2012 22:43, Laird Nelson <ljnelson@gmail.com> wrote:

> On Tue, May 1, 2012 at 5:30 PM, Stephen Connolly <
> stephen.alan.connolly@gmail.com> wrote:
>
> > there is your #fail
> >
> > mvn clean install -fae -Pminlog '-Dtest=TestCaseFoo#testBar'
> >
>
> Thanks again for your prompt response.  I don't see how the quoting of the
> -Dtest= part would help, but I did it just the same, and I get the same
> error:
>
>
for reasons I have never quite understood, quoting has only ever worked for
me when the quote is at the very start of the -D, i.e. "-D or '-D


>
> mvn -o clean install '-Dtest=TestCaseFoo#testBar'
> [snip]
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Picked up _JAVA_OPTIONS: -Dfile.encoding=UTF-8
> Running com.foobar.TestCaseFoo
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.096 sec
> <<< FAILURE!
> initializationError(org.junit.runner.manipulation.Filter)  Time elapsed:
> 0.005 sec  <<< ERROR!
> java.lang.Exception: No tests found matching Method
> testCRUD(com.foobar.TestCaseFoo) from
> org.junit.internal.requests.ClassRequest@7cf1bb78
> at
> org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:37)
>


> I'll research further.  Thanks again.  Help like yours is really quite
> valuable.
>
>
Looks like something is going wrong alright


> Best,
> Laird
>
> --
> http://about.me/lairdnelson
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message