[ 
https://issues.apache.org/jira/browse/SUREFIRE-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15424003#comment-15424003
 ] 

Jin Kwon commented on SUREFIRE-323:
-----------------------------------

And {{-Dit.test=}} also doesn't do anything at all

> Running a single test using -Dtest has no effect
> ------------------------------------------------
>
>                 Key: SUREFIRE-323
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-323
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: java version "1.5.0_09"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b01, mixed mode)
>            Reporter: Graham Leggett
>            Assignee: Brett Porter
>
> Using the -D option from the command line to run a test as per the 
> instructions at 
> http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html,
>  the test is ignored.
> The test is not configured within the pom, because the test should only be 
> run by hand, not as part of the build. Thus the need to run the test on its 
> own.
> bash-3.00$ mvn -Dtest=**/*TestConcurrency test
> [INFO] Scanning for projects...
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building Alchemy Measure
> [INFO]    task-segment: [test]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> The following command line options also do not work:
> bash-3.00$ mvn -Dtest=TestConcurrency test
> [INFO] Scanning for projects...
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building Alchemy Measure
> [INFO]    task-segment: [test]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to