James Taylor commented on SUREFIRE-1230:

bq. I plan to redirect the logs to {{target/surefire-reports/TEST-null.txt}} in 
these circumstances.
Do you mean it'll redirect to the log file for the particular test that's 
running or that the output will simply be dropped? Is the output that is 
currently going to the console also getting logged in the tests log file?

BTW, this parallel feature is really awesome - our tests are able to run 10x 
faster than before.

> Issue with config parameter 'redirectTestOutputToFile' when running cucumber 
> parallel tests
> -------------------------------------------------------------------------------------------
>                 Key: SUREFIRE-1230
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1230
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.18.1
>            Reporter: Manoj Palki
>            Assignee: Tibor Digana
>         Attachments: cucumber_java_skeleton.tar.gz
> The config parameter redirectTestOutputToFile behaves differently based on 
> how parallelism is configured in the surefire plugin. 
> If the config is 
> <forkCount>2</forkCount>
> <reuseForks>false</reuseForks>
> <redirectTestOutputToFile>true</redirectTestOutputToFile>
> then the output from the tests is directed correctly to 'xxxtest-output.txt' 
> file. 
> However, if the config is
> <threadCount>2</threadCount>
> <parallel>classes</parallel>
> <redirectTestOutputToFile>true</redirectTestOutputToFile>
> then the output from the tests is partially directed to the 
> 'xxxtest-output.txt file and partially to stdout. 
> Also the output files have different names in two cases. 

This message was sent by Atlassian JIRA

Reply via email to