Verbose mode > 4 can crash with Maven failsafe
See original GitHub issueThis is weired. When running TestNG + Maven failesafe, with surefire.testng.verbose > 4:
<configuration>
<suiteXmlFiles>
<suiteXmlFile>My_Test_Suite.xml</suiteXmlFile>
</suiteXmlFiles>
<systemPropertyVariables>
<surefire.security.manager>java.lang.SecurityManager</surefire.security.manager>
<java.security.manager>default</java.security.manager>
</systemPropertyVariables>
<useSystemClassloader>false</useSystemClassloader>
<threadCount>20</threadCount>
<reuseForks>true</reuseForks>
<argLine>-Xmx2048m</argLine>
<properties>
<property>
<name>listener</name>
<value>org.imaginea.jenkins.plugins.testinprogress.testng.TestNGProgressRunListener</value>
</property>
<property>
<name>surefire.testng.verbose</name>
<value>10</value>
</property>
</properties>
</configuration>
On Windows 2008 R2, all tests fail right away. If I change it to Verbose < 5, everything run as usual.
I’m not sure if the following exception is the cause:
Creating c:\jenkins-slave\workspace\Automation_Matrix_New\72b9012b\test-output\testng-failed.xml java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:1012) at org.testng.internal.Utils.writeFile(Utils.java:173) at org.testng.internal.Utils.writeUtf8File(Utils.java:135) at org.testng.reporters.FailedReporter.generateFailureSuite(FailedReporter.java:76) at org.testng.reporters.FailedReporter.generateReport(FailedReporter.java:47) at org.testng.TestNG.generateReports(TestNG.java:1135) at org.testng.TestNG.run(TestNG.java:1081) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (1 by maintainers)
This error doesn’t seem to be related to what I used to see (which is fixed in 6.9.11 as far as I can tell).
Ok, thank.
I had a look and the failing log is only activated with >4. I don’t understand what is the problem for the moment but feel free to analyse it 😃