On 12/13/2010 03:59 PM, Antoine Levy-Lambert wrote:
http://people.apache.org/~antoine/dist/

Built big chunks of NetBeans sources without problems. Generally seems to be 
working embedded on various scripts.

But there seems to be some problem with #34748 not working correctly on JUnit 4.x-style @Test's which I have not yet tracked down (this works under 1.8.1 with a binary patch from the #34748 branch). I'm mostly on holiday now, may not be able to get to the bottom of this before the new year. So far I know that JUnitTestRunner is being called with 'methods' as expected, but runs all the test methods anyway:

import org.junit.Test;
public class SomeTest {
    @Test public void a() {}
    @Test public void b() {}
}

Execute:Java13CommandLauncher: Executing '.../jdk1.6.0_22/bin/java' with 
arguments:
'-ea'
'-classpath'
'...:.../junit-4.8.2.jar:.../ant-launcher.jar:.../ant.jar:.../ant-junit.jar'
'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
'SomeTest'
'methods=a'
'filtertrace=true'
'haltOnError=false'
'haltOnFailure=false'
'showoutput=true'
'outputtoformatters=true'
'logfailedtests=true'
'logtestlistenerevents=true'
'formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter'
'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,/tmp/TEST-SomeTest.xml'
'crashfile=...'
'propsfile=...'
The ' characters around the executable and arguments are
not part of the command.
Testsuite: SomeTest
junit.framework.TestListener: tests to run: 2
junit.framework.TestListener: startTest(b)
junit.framework.TestListener: endTest(b)
junit.framework.TestListener: startTest(a)
junit.framework.TestListener: endTest(a)
Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.05 sec


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to