[
https://jira.codehaus.org/browse/SUREFIRE-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=309041#comment-309041
]
nkeywal edited comment on SUREFIRE-800 at 9/19/12 8:05 AM:
-----------------------------------------------------------
2.12.3: cat target/surefire-reports/junit47ConsoleOutput.Test0-output.txt
{noformat}
Constructor
setUp
testT0
tearDown
Constructor
setUp
testT1
tearDown
{noformat}
2.13-SNAPSHOT with 800 cat
target/surefire-reports/junit47ConsoleOutput.Test0-output.txt
{noformat}
setUpBeforeClass
Constructor
setUp
testT0
tearDown
Constructor
setUp
testT1
tearDown
tearDownAfterClass
{noformat}
setUpBeforeClass / tearDownAfterClass are in the output when using the version
#800 (as expected).
But may be I misunderstood your point?
was (Author: nkeywal):
2.12.3: cat target/surefire-reports/junit47ConsoleOutput.Test0-output.txt
{noformat}
Constructor
setUp
testT0
tearDown
Constructor
setUp
testT1
tearDown
{noformat}
2.13-SNAPSHOT with 800 cat
target/surefire-reports/junit47ConsoleOutput.Test0-output.txt
{noformat}
setUpBeforeClass
Constructor
setUp
testT0
tearDown
Constructor
setUp
testT1
tearDown
tearDownAfterClass
{noformat}
setUpBeforeClass / tearDownAfterClass are in the output when using the version
#800 (as expected).
But may be I misunderstood you point?
> redirectTestOutputToFile is not taken into account in all cases with JUnit47
> provider
> -------------------------------------------------------------------------------------
>
> Key: SUREFIRE-800
> URL: https://jira.codehaus.org/browse/SUREFIRE-800
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.7+ (parallel) support
> Affects Versions: 2.10
> Environment: all
> Reporter: nkeywal
> Assignee: Kristian Rosenvold
> Fix For: 2.13
>
> Attachments: 800.v1.patch
>
>
> With the following class:
> {noformat}
> public class Test0 {
> public Test0(){
> System.out.println("Constructor");
> }
> @Test
> public void testT0() throws Exception {
> System.out.println("testT0");
> }
> @Test
> public void testT1() throws Exception {
> System.out.println("testT1");
> }
> @BeforeClass
> public static void setUpBeforeClass() throws Exception {
> System.out.println("setUpBeforeClass");
> }
> @AfterClass
> public static void tearDownAfterClass() throws Exception {
> System.out.println("tearDownAfterClass");
> }
> @Before
> public void setUp() throws Exception {
> System.out.println("setUp");
> }
> @After
> public void tearDown() throws Exception {
> System.out.println("tearDown");
> }
> }
> {noformat}
> Some elements of the output are not redirected with JUNit47.
> {noformat}
> Concurrency config is parallel='none', perCoreThreadCount=true,
> threadCount=2, useUnlimitedThreads=false
> setUpBeforeClass
> Constructor
> Constructor
> tearDownAfterClass
> Running Test0
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
> {noformat}
> While it's ok with with JUNit4:
> {noformat}
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running Test0
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.09 sec
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira