You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Pabst (Jira)" <ji...@apache.org> on 2022/12/28 14:13:00 UTC
[jira] [Commented] (SUREFIRE-1838) Ability to run an inner class or a method within
[ https://issues.apache.org/jira/browse/SUREFIRE-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17652504#comment-17652504 ]
Andreas Pabst commented on SUREFIRE-1838:
-----------------------------------------
I think this is the same issue as SUREFIRE-2115.
On a Unix-like command line at least you have to escape the dollar symbol using a backslash, then it works as expected.
```
mvn surefire:test -Dtest=XFPNumberTest\$AxField\$AddGroup
```
Not a Surefire bug.
> Ability to run an inner class or a method within
> ------------------------------------------------
>
> Key: SUREFIRE-1838
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1838
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.x support
> Affects Versions: 3.0.0-M5
> Reporter: Ernst Reissner
> Priority: Major
>
> invocations like
> ```
> mvn surefire:test -Dtest=XFPNumberTest$AxField$AddGroup
> ```
> do not restrict to inner classes as expected.
> The same with methods within.
>
> In fact, this prevents single methods from being invoked individually,
> if test classes are nested like in
>
> ```
> mvn surefire:test -Dtest=XFPNumberTest$AxField$AddGroup.testXXX
> ```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)