maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Blakey (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SUREFIRE-1428) Invalid XML characters in Params in testng-results.xml
Date Tue, 03 Oct 2017 20:32:01 GMT
Leon Blakey created SUREFIRE-1428:
-------------------------------------

             Summary: Invalid XML characters in Params in testng-results.xml
                 Key: SUREFIRE-1428
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1428
             Project: Maven Surefire
          Issue Type: Bug
          Components: TestNG support
    Affects Versions: 2.20.1
            Reporter: Leon Blakey


The following test creates an invalid testng-results.xml file as the \u000C is unescaped in
the <value> tag. This breaks downstream tools like Jenkins

{code:java}
@DataProvider
public Object[][] dataProvider() {
	return new Object[][]{{
		"test \u000C"
	}};
}

@Test(dataProvider = "dataProvider")
public void test(String argument) {
}
{code}

* Surefire 2.20.1
* TestNG 6.11



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message