[
https://issues.apache.org/jira/browse/SUREFIRE-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16191785#comment-16191785
]
Julien Herr commented on SUREFIRE-1428:
---------------------------------------
Related TestNG issue: https://github.com/cbeust/testng/issues/1566
> 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
> Assignee: Tibor Digana
>
> 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)