Ondrej Lukas created SUREFIRE-1662:
--------------------------------------
Summary: Invalid content of .surefire-XXXXXXXXX statistic file
when parameters contain new line
Key: SUREFIRE-1662
URL: https://issues.apache.org/jira/browse/SUREFIRE-1662
Project: Maven Surefire
Issue Type: Bug
Components: Maven Surefire Plugin
Affects Versions: 3.0.0-M3
Reporter: Ondrej Lukas
In case when _@Parameters_ contains any new line ("_\n_") then created
_.surefire-XXXXXXXXX_ statistic file is invalid because new line is not escaped
in that file.
*How to reproduce:*
Use following `@Parameters` in some test:
{code:java}
@Parameters(name = "mode={0}")
public static Collection<Object> parameters() {
return asList("somethingWith\nNewLine", "something");
}
{code}
It will result to file where two lines are printed instead of one:
{code}
1,0,testSomething[mode=somethingWith
NewLine](com.example.SomeTest)
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)