[ https://issues.apache.org/jira/browse/SUREFIRE-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998036#comment-14998036 ]
Julien Herr commented on SUREFIRE-1194: --------------------------------------- Well, it won't be so easy: * "-reporterlist" is available since 5.6 only * "-reporterlist" is removed since 5.14.3, and replaced by "-reporter" * "-reporter" is used since 5.6 too, but not in the method used by surefire. From `TestNGCommandLineArgs`: ```java else if (REPORTER.equalsIgnoreCase(argv[i])) { if ((i + 1) < argv.length) { ReporterConfig reporterConfig = ReporterConfig.deserialize(trim(argv[i + 1])); if (arguments.get(REPORTERS_LIST) == null) { arguments.put(REPORTERS_LIST, new ArrayList<ReporterConfig>()); } ((List<ReporterConfig>)arguments.get(REPORTERS_LIST)).add(reporterConfig); i++; } } ``` * `configure()` method used by the `MapConfigurator` is available since 5.5 (currently surefire starts it at 5.10) * remember SUREFIRE-1177, `configure()` should be replaced between 5.14 and 5.14.2 What should I do? * Quick fix for the current issue (what? how?), or * Postpone the fix and fix it later with the configure migration? > reporter argument does not work for TestNG > ------------------------------------------ > > Key: SUREFIRE-1194 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1194 > Project: Maven Surefire > Issue Type: Bug > Components: TestNG support > Affects Versions: 2.19 > Reporter: Testo Nakada > Assignee: Tibor Digana > Fix For: 2.19.1 > > > TestNG plugin seems to map -reporter command line parameter to reporterslist > which was removed in TestNG project since 2010 > (a4779524b59330e98ee596c5faa43ae1b33ff844). Therefore, this configuration has > stopped working since then. The configuration mentioned in > http://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html#Using_Custom_Listeners_and_Reporters > does not work as expected. -- This message was sent by Atlassian JIRA (v6.3.4#6332)