You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2015/06/10 22:39:01 UTC
[jira] [Closed] (SUREFIRE-1161) Executing selected (multiple) tests
of same class gives Exception
[ https://issues.apache.org/jira/browse/SUREFIRE-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tibor Digana closed SUREFIRE-1161.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.19
Assignee: Tibor Digana
We have such junit/testng test which works with multiple methods.
https://github.com/apache/maven-surefire/blob/master/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/AbstractTestMultipleMethodPatterns.java#L340
> Executing selected (multiple) tests of same class gives Exception
> -----------------------------------------------------------------
>
> Key: SUREFIRE-1161
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1161
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.18.1
> Environment: Java 8, Linux
> Reporter: Alessandro Polverini
> Assignee: Tibor Digana
> Fix For: 2.19
>
>
> testing selected methods (more than 1) of the same class using the syntax
> mvn -Dtest=MyClass#method1+method2 test
> Gives:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.String.substring(String.java:1948)
> at org.apache.maven.surefire.junit4.JUnit4Provider.getMethod(JUnit4Provider.java:307)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:147)
> at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)