You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2012/02/03 14:42:02 UTC
[jira] (SUREFIRE-828) testng test need a excludedGroups element to
not fail
Olivier Lamy created SUREFIRE-828:
-------------------------------------
Summary: testng test need a excludedGroups element to not fail
Key: SUREFIRE-828
URL: https://jira.codehaus.org/browse/SUREFIRE-828
Project: Maven Surefire
Issue Type: Bug
Components: TestNG support
Affects Versions: 2.12
Reporter: Olivier Lamy
excludedGroups looks to be mandatory now.
If not surefire fail :
{code}
Running TestSuite
org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: org.apache.maven.surefire.testset.TestSetFailedException: null; nested exception is java.lang.reflect.InvocationTargetException: null
at org.apache.maven.surefire.testng.TestNGExecutor.applyGroupMatching(TestNGExecutor.java:164)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:65)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:161)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:101)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
... 9 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.testng.TestNGExecutor.applyGroupMatching(TestNGExecutor.java:140)
... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot parse group includes/excludes expression(s):
Includes: null
Excludes:
at org.apache.maven.surefire.testng.utils.GroupMatcherMethodSelector.setGroups(GroupMatcherMethodSelector.java:82)
... 18 more
Caused by: org.apache.maven.surefire.group.parse.ParseException: Encountered "" at line 0, column 0.
Was expecting one of:
at org.apache.maven.surefire.group.parse.GroupMatcherParser.generateParseException(GroupMatcherParser.java:633)
at org.apache.maven.surefire.group.parse.GroupMatcherParser.jj_consume_token(GroupMatcherParser.java:518)
at org.apache.maven.surefire.group.parse.GroupMatcherParser.expr(GroupMatcherParser.java:68)
at org.apache.maven.surefire.group.parse.GroupMatcherParser.parse(GroupMatcherParser.java:56)
at org.apache.maven.surefire.testng.utils.GroupMatcherMethodSelector.setGroups(GroupMatcherMethodSelector.java:68)
... 18 more
Results :
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-828) testng test need a excludedGroups element to
not fail
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed SUREFIRE-828.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.13
see revIds: 1240241 & 1240242.
> testng test need a excludedGroups element to not fail
> -----------------------------------------------------
>
> Key: SUREFIRE-828
> URL: https://jira.codehaus.org/browse/SUREFIRE-828
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 2.12
> Reporter: Olivier Lamy
> Assignee: John Casey
> Priority: Critical
> Fix For: 2.13
>
>
> excludedGroups looks to be mandatory now.
> If not surefire fail :
> {code}
> Running TestSuite
> org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> Caused by: org.apache.maven.surefire.testset.TestSetFailedException: null; nested exception is java.lang.reflect.InvocationTargetException: null
> at org.apache.maven.surefire.testng.TestNGExecutor.applyGroupMatching(TestNGExecutor.java:164)
> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:65)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:161)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:101)
> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
> ... 9 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.testng.TestNGExecutor.applyGroupMatching(TestNGExecutor.java:140)
> ... 13 more
> Caused by: java.lang.IllegalArgumentException: Cannot parse group includes/excludes expression(s):
> Includes: null
> Excludes:
> at org.apache.maven.surefire.testng.utils.GroupMatcherMethodSelector.setGroups(GroupMatcherMethodSelector.java:82)
> ... 18 more
> Caused by: org.apache.maven.surefire.group.parse.ParseException: Encountered "" at line 0, column 0.
> Was expecting one of:
>
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.generateParseException(GroupMatcherParser.java:633)
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.jj_consume_token(GroupMatcherParser.java:518)
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.expr(GroupMatcherParser.java:68)
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.parse(GroupMatcherParser.java:56)
> at org.apache.maven.surefire.testng.utils.GroupMatcherMethodSelector.setGroups(GroupMatcherMethodSelector.java:68)
> ... 18 more
> Results :
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-828) testng test need a excludedGroups element to
not fail
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated SUREFIRE-828:
----------------------------------
Priority: Critical (was: Major)
> testng test need a excludedGroups element to not fail
> -----------------------------------------------------
>
> Key: SUREFIRE-828
> URL: https://jira.codehaus.org/browse/SUREFIRE-828
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 2.12
> Reporter: Olivier Lamy
> Priority: Critical
>
> excludedGroups looks to be mandatory now.
> If not surefire fail :
> {code}
> Running TestSuite
> org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> Caused by: org.apache.maven.surefire.testset.TestSetFailedException: null; nested exception is java.lang.reflect.InvocationTargetException: null
> at org.apache.maven.surefire.testng.TestNGExecutor.applyGroupMatching(TestNGExecutor.java:164)
> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:65)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:161)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:101)
> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
> ... 9 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.testng.TestNGExecutor.applyGroupMatching(TestNGExecutor.java:140)
> ... 13 more
> Caused by: java.lang.IllegalArgumentException: Cannot parse group includes/excludes expression(s):
> Includes: null
> Excludes:
> at org.apache.maven.surefire.testng.utils.GroupMatcherMethodSelector.setGroups(GroupMatcherMethodSelector.java:82)
> ... 18 more
> Caused by: org.apache.maven.surefire.group.parse.ParseException: Encountered "" at line 0, column 0.
> Was expecting one of:
>
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.generateParseException(GroupMatcherParser.java:633)
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.jj_consume_token(GroupMatcherParser.java:518)
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.expr(GroupMatcherParser.java:68)
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.parse(GroupMatcherParser.java:56)
> at org.apache.maven.surefire.testng.utils.GroupMatcherMethodSelector.setGroups(GroupMatcherMethodSelector.java:68)
> ... 18 more
> Results :
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-828) testng test need a excludedGroups element to
not fail
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290707#comment-290707 ]
John Casey commented on SUREFIRE-828:
-------------------------------------
In my rush to complete the expressions feature, I forgot to code in a check for empty strings in groups/excludedGroups. It looks like that's what's causing problems here.
> testng test need a excludedGroups element to not fail
> -----------------------------------------------------
>
> Key: SUREFIRE-828
> URL: https://jira.codehaus.org/browse/SUREFIRE-828
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 2.12
> Reporter: Olivier Lamy
> Assignee: John Casey
> Priority: Critical
>
> excludedGroups looks to be mandatory now.
> If not surefire fail :
> {code}
> Running TestSuite
> org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> Caused by: org.apache.maven.surefire.testset.TestSetFailedException: null; nested exception is java.lang.reflect.InvocationTargetException: null
> at org.apache.maven.surefire.testng.TestNGExecutor.applyGroupMatching(TestNGExecutor.java:164)
> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:65)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:161)
> at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:101)
> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
> ... 9 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.testng.TestNGExecutor.applyGroupMatching(TestNGExecutor.java:140)
> ... 13 more
> Caused by: java.lang.IllegalArgumentException: Cannot parse group includes/excludes expression(s):
> Includes: null
> Excludes:
> at org.apache.maven.surefire.testng.utils.GroupMatcherMethodSelector.setGroups(GroupMatcherMethodSelector.java:82)
> ... 18 more
> Caused by: org.apache.maven.surefire.group.parse.ParseException: Encountered "" at line 0, column 0.
> Was expecting one of:
>
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.generateParseException(GroupMatcherParser.java:633)
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.jj_consume_token(GroupMatcherParser.java:518)
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.expr(GroupMatcherParser.java:68)
> at org.apache.maven.surefire.group.parse.GroupMatcherParser.parse(GroupMatcherParser.java:56)
> at org.apache.maven.surefire.testng.utils.GroupMatcherMethodSelector.setGroups(GroupMatcherMethodSelector.java:68)
> ... 18 more
> Results :
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira