maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laird Nelson <ljnel...@gmail.com>
Subject Re: Surefire unable to find "bar" test method when passed -Dtest=Foo#bar
Date Tue, 01 May 2012 21:43:06 GMT
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:


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.

Best,
Laird

--
http://about.me/lairdnelson

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