Github user Tibor17 commented on the pull request:
https://github.com/apache/maven-surefire/pull/107#issuecomment-160397879
It's hard to debug the IT because @After cleaned up previous tests in
`target`.
Good inspiration is `Surefire1158RemoveInfoLinesIT` and method `unpack`
because the folder where the IT is extracted is not cleaned up but every
@Parameterized value combination has own postfix `_xyz` in folder name. Example:
`return unpack( getClass(), "/surefire-1158-remove-info-lines", "_" +
description, cli )`
CLI is not your case.
Then we will see all logs from all tests which is good for debugging of
entire build.
Not sure why you have such exception, but we will see the root cause if you
call `unpack` as above and I guess the root cause is in missing classes in
TestNG because the Reporter API changed in TestNG as I understood. This means
we will need to have another configuration of
```
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
<configuration>
<properties>
<property><name>usedefaultlisteners</name><value>false</value></property>
<property><name>listener</name><value>listenReport.ResultListener,listenReport.SuiteListener</value></property>
<property><name>reporter</name><value>listenReport.Reporter</value></property>
</properties>
</configuration>
</plugin>
```
This means you can parameterize `<value/>` with Maven property been fetched
from IT in the form of system property, e.g. `<value>${it.listener}</value>`
and IT would have `unpack(...).sysProp( "it.listener", "<class>" )`; Or you can
use Maven profile, as you like, but system property is okay and simple.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]