Re: NoSuchMethodException using ant junit task against junit 5 5.3.1

2018-10-03 Thread Jaikiran Pai
Hello Dave, Can you add some details like what jars (especially the ones that contain the Ant JUnit task classes) are present in the classpath? An output of ant -v might also be useful. There was an unintentional change in one of 1.10.x releases which affected the signature of the clone

NoSuchMethodException using ant junit task against junit 5 5.3.1

2018-10-03 Thread Dave Brosius
I am running ant 1.10.5 against the 5.3.1/1.3.1 of junit 5 and getting java.lang.NoSuchMethodError: org.apache.tools.ant.types.CommandlineJava.clone()Lorg/apache/tools/ant/types/CommandlineJava; Anyone know what i'm missing? It works fine with 5.2.0/

RE: Test for JUnit version?

2017-07-07 Thread Roger Whitcomb
Perfect! Somehow missed that ... :) Thank you. -Original Message- From: Stefan Bodewig [mailto:bode...@apache.org] Sent: Thursday, July 06, 2017 8:58 PM To: user@ant.apache.org Subject: Re: Test for JUnit version? On 2017-07-06, Roger Whitcomb wrote: > Hi all, >

Re: Test for JUnit version?

2017-07-06 Thread Stefan Bodewig
On 2017-07-06, Roger Whitcomb wrote: > Hi all, > I just realized I have written some JUnit tests that rely on > "assertNotEquals" that has just appeared "recently" in JUnit (as in, 4.11 and > 4.12, but not 4.10). I'm testing for the presen

Test for JUnit version?

2017-07-06 Thread Roger Whitcomb
Hi all, I just realized I have written some JUnit tests that rely on "assertNotEquals" that has just appeared "recently" in JUnit (as in, 4.11 and 4.12, but not 4.10). I'm testing for the presence of JUnit in the classpath in my "build.xml",

Test for JUnit version?

2017-07-06 Thread Roger Whitcomb
Hi all, I just realized I have written some JUnit tests that rely on "assertNotEquals" that has just appeared "recently" in JUnit (as in, 4.11 and 4.12, but not 4.10). I'm testing for the presence of JUnit in the classpath in my "build.xml",

Re: Junit 5 support

2017-01-07 Thread Dann Ryan Hilario
Thanks for the update! I'll be bringing this up with the JUnit team as well ( https://github.com/junit-team/junit5/pull/624 ) and see if anybody wants to give it a try. I'm sure users of both tools will be glad to know that there are at least initial discussions going on. Regards, Da

Re: Junit 5 support

2017-01-07 Thread Stefan Bodewig
On 2017-01-07, Dann Ryan Hilario wrote: > There are lots of exciting developments in JUnit 5 recently and I'm > wondering if there are ongoing development or plan to support the JUnit 5 > platform anytime soon? At least I'm not aware of anybody working on it. I'll b

Junit 5 support

2017-01-06 Thread Dann Ryan Hilario
Hello, There are lots of exciting developments in JUnit 5 recently and I'm wondering if there are ongoing development or plan to support the JUnit 5 platform anytime soon? I believe the JUnit 5 team has been actively collaborating with Maven and Gradle team for a native support and a lot of

Re: junit skipNotTests zipfileset including inner classes that are not tests

2014-02-11 Thread Antoine Levy Lambert
Hello, No idea why the inner classes are being tested. as a workaround you could try (untested) : > > > > > > Regards, Antoine On Feb 10, 2014, at 7:17 PM, Marc Benstein wrote: > I am using ant 1.9.3 with junit 4.11 with b

junit skipNotTests zipfileset including inner classes that are not tests

2014-02-10 Thread Marc Benstein
I am using ant 1.9.3 with junit 4.11 with batchtest skipNonTests="true" What is happening is that inner classes of non-test classes are being tested. This is resulting in a few failures. Any thoughts on why these inner classes that are not test classes are be

Customize JUnit HTML report which is designed JUnit and Ant

2014-01-07 Thread Ravi Joshi
Hi, I found a similar topic (http://stackoverflow.com/a/1733940/1175065) on Stackoverflow and posted also but that is not figuring me out to find the solution. Below are the requirements to customize HTML report- 1. Need to add project name (Currently, I have set the project name in my JUnit

Re: Duplicate formatters of the same type in junit test corrupting output file

2013-11-24 Thread Antoine Levy Lambert
Hello Bernhard, this looks like a bug. You might want to report it in bugzilla. Regards, Antoine On Oct 9, 2013, at 7:21 AM, Bernhard Voelker wrote: > Hi *, > > we had a Junit task with an XML formatter defined both on the > and the level: > >fork=&qu

Duplicate formatters of the same type in junit test corrupting output file

2013-10-09 Thread Bernhard Voelker
Hi *, we had a Junit task with an XML formatter defined both on the and the level:                                           Since Ant 1.9, this resulted in garbled output files: the end was somehow doubled, sometimes only like this:  like this:     uite> but in other situati

Question on changing the default junit report

2013-08-12 Thread Yana K
Hi I am new Ant and JUnit. I am using the default report - TESTS-TestSuites.xml* - that's generated by our Ant script. Is there a way to customize it? e.g. can I add a new field to it? Thanks Yana *http://ant.apache.org/manual/Tasks/junitreport.html

JUnit not found building on Mac MountainLion

2013-06-13 Thread Jack Woehr
What am I doing wrong, please? $ echo $CLASSPATH /opt/local/ant/lib/junit.jar $ echo $ANT_HOME /opt/local/ant $ ./build.sh /.../apache-ant-1.9.1/build.xml:1059: The following error occurred while executing this line: /.../apache-ant-1.9.1/build.xml:769: We cannot build the test jar unless JUnit is

Re: How to run a single junit test method with ant

2013-05-19 Thread 肖谋
> > > > > > > > > Run JUnit using 'batchtest' and fileset > > > > Run JUnit using 'test name=$${testclass}

Re: How to run a single junit test method with ant

2013-05-19 Thread 肖谋
Thank you very much! I missed that important property. Regards xiaomou On Sun, May 12, 2013 at 11:33 PM, Antoine Levy Lambert wrote: > Hello Xiaomou, > > the documentation of the junit task > http://ant.apache.org/manual/Tasks/junit.html > mentions that the test nested ele

AW: How to run a single junit test method with ant

2013-05-14 Thread jhm
Run JUnit using 'batchtest' and fileset Run JUnit using 'test name=$${testclass}'

Re: How to run a single junit test method with ant

2013-05-12 Thread Antoine Levy Lambert
Hello Xiaomou, the documentation of the junit task http://ant.apache.org/manual/Tasks/junit.html mentions that the test nested element can have a methods attribute to specify the methods you want to run Comma-separated list of names of test case methods to execute. Since 1.8.2

Re: How to run a single junit test method with ant

2013-05-11 Thread 肖谋
Thanks for your reply. Perhaps I did not express my problem clearly, or may not understand your solution. My problem is : I have junit test class: class TestService { @Test void test1() {} @Test void test2() {} } now I'd like to only test the "test2" with ant command line

AW: How to run a single junit test method with ant

2013-05-11 Thread jhm
: Matt Benson [mailto:gudnabr...@gmail.com] > Gesendet: Freitag, 10. Mai 2013 16:55 > An: Ant Users List > Betreff: Re: How to run a single junit test method with ant > > Typically this would be done using separate targets. Ant's own > build.xml provides an example. > >

Re: How to run a single junit test method with ant

2013-05-10 Thread Matt Benson
Typically this would be done using separate targets. Ant's own build.xml provides an example. HTH, Matt On Thu, May 9, 2013 at 11:33 PM, 肖谋 wrote: > Hi, Users. >I am using ant in Linux. I can use ant junit task to run all test > methods in a junit4 test class but fail to f

How to run a single junit test method with ant

2013-05-09 Thread 肖谋
Hi, Users. I am using ant in Linux. I can use ant junit task to run all test methods in a junit4 test class but fail to find the way to run a single test method. I googled and found a helpful article at https://today.java.net/pub/a/today/2003/09/12/individual-test-cases.html. However, the

support for @Ignore for JUnit 4.x ?

2012-08-15 Thread Harry Soehalim
Hi There, Does anyone know if ant ver.1.8.3 support @Ignore for JUnit 4.x? Thanks, Harry - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

ant 1.8.4 has junit installed (by 'fetch'), but builds FAIL with "the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found." ?

2012-07-23 Thread k9157
include 'junit' ls -al $ANT_HOME/lib/*junit* -rw-rw-r--+ 1 root root 6.2K Jul 22 19:26 /usr/local/ant/lib/ant-junit4.jar -rw-rw-r--+ 1 root root 2.8K Jul 22 19:26 /usr/local/ant/lib/ant-junit4.pom -rw

Property files when running Selenium/JUnit test cases

2012-05-08 Thread rohit dholakia
erty files, but, you see, I have lots of selenium test cases and lots of junit test cases. They have different property files , but, same names . I can't overlap . Also, I think there has to be a better solution ) Thanks, *Rohit *

junit task: Unable to run JUnit4 test with TestCase super-class

2012-02-24 Thread Martin Huber
Is there a way to force Ant 1.8.2 to use JUnit4 for JUnit4 tests which it does not recognize correctly? I have JUnit4 test classes which extend a class (SeleneseTestCase) which in turn extends junit.framework.TestCase. The tests require a custom JUnit4 Runner which is annotated to the test clas

Re: How to run all the junit classes in parallel instead of adding one by one?

2012-01-20 Thread vasuki
How to run the packages using ant? I have set of classes in one package. I want to run that classes. How to use the packages in ant? Awaiting for your reply. -- View this message in context: http://ant.1045680.n5.nabble.com/How-to-run-all-the-junit-classes-in-parallel-instead-of-adding-one-by

How to run all the junit classes in parallel instead of adding one by one?

2012-01-17 Thread vasuki
For example, In my ant.xml ** ** I am adding two classes one by one inside the parallel tag. In this case, the JUnit test cases will run in parallel. But I want to give

Ant Junit ignore annotation @ContextConfiguration

2011-12-20 Thread 叶伟平
ationContextAware { ... } It works fine with Eclipse, but when I run TestLoginAction in Ant-Junit, it fails. The spring configure files(applicationContext-dao.xml ...) are not loaded. It seem that the "@ContextConfigurat

AW: fork, JUnit and Linux

2011-12-09 Thread Knuplesch, Juergen
richt- Von: roject [mailto:roject@allianz.com.au] Gesendet: Freitag, 9. Dezember 2011 01:46 An: user@ant.apache.org Betreff: Re: fork, JUnit and Linux HI, i am having the same problem with running ant junit in linux. Do you solve the problem? -- View this message in context: http://ant.10456

Re: fork, JUnit and Linux

2011-12-09 Thread roject
HI, i am having the same problem with running ant junit in linux. Do you solve the problem? -- View this message in context: http://ant.1045680.n5.nabble.com/fork-JUnit-and-Linux-tp4977907p5060443.html Sent from the Ant - Users mailing list archive at Nabble.com

Junit task failing on formatter="failure"

2011-12-06 Thread Wright, Clark
Just started using Ant 1.8.2, mostly in order to use the new "failure" formatter of the junit task. This macrodef: Juni

Re: fork, JUnit and Linux

2011-11-17 Thread Stefan Bodewig
On 2011-11-14, Knuplesch, Juergen wrote: > I use OpenSuse 11.4 32 Bit > I use Java 1.6.0.17, JDK from Sun > Before that I tried 1.6.022 and OpenJDK. And you are sure this is what Ant uses? > The problem I have is when I use the fork attribute. > Do I have to tell Linux to take the old classpath

AW: fork, JUnit and Linux

2011-11-14 Thread Knuplesch, Juergen
anymore and everything is working. But I would like to use fork but I do not see where the problem is and how to solve it. -Ursprüngliche Nachricht- Von: Stefan Bodewig [mailto:bode...@apache.org] Gesendet: Freitag, 11. November 2011 15:58 An: user@ant.apache.org Betreff: Re: fork, JUnit and

Re: fork, JUnit and Linux

2011-11-11 Thread Stefan Bodewig
On 2011-11-09, Knuplesch, Juergen wrote: > when I run a task with > fork="yes" > under LINUX the test does not even start: LINUX is a pretty broad term here. Which version of java are you using? I use Ant on Linux using OpenJDK or Sun's Java without any problems. If this is gcj then you may h

Re: bug Hello World tutorial. Integration with JUnit

2011-10-10 Thread Stefan Bodewig
On 2011-10-10, Leandro Coutinho wrote: > I don't understand why you can't update there. The website shows the documentation that shipped with the latest release. Actually, I'm not sure this is a conscious choice. Maybe nobody has questioned this policy lately. > So does the (bug) tutorial run

Re: bug Hello World tutorial. Integration with JUnit

2011-10-10 Thread Leandro Coutinho
Hi Stefan. Thanks for your reply. I tell what the problem was. It's explained in the second link. Sorry for not be too verbose. I don't understand why you can't update there. So does the (bug) tutorial run fine with Ant latest version? I'm running Ant version 1.8.0 On Mon, Oct 10, 2011 at 6:45 AM,

Re: bug Hello World tutorial. Integration with JUnit

2011-10-10 Thread Stefan Bodewig
On 2011-10-09, Leandro Coutinho wrote: > http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html It would have helped if you told us what the problem was 8-) The build file created during the tutorial relies on some old behavior of Ant that elements with ids where available to be used with

bug Hello World tutorial. Integration with JUnit

2011-10-09 Thread Leandro Coutinho
http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html Here is my workaround: http://www.coderanch.com/t/555213/tools/Ant-BUILD-FAILED-Reference-application

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-05 Thread Bob Billings
Yeah, that would suit my purposes. Seems like the first line is the only one likely to contain a space before the word " more" anyway, aside from the line we want to strip. Bob On Aug 5, 2011, at 8:40 AM, Stefan Bodewig wrote: > On 2011-08-04, Robert E. Billings III wrote: > >> OK, I'll fil

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-05 Thread Stefan Bodewig
On 2011-08-04, Robert E. Billings III wrote: > OK, I'll fill out a bugzilla report. Thanks for verifying! :) Would it be enough if we simply started filtering after the first line of the stack trace? That fix would be easiest to implement. Stefan --

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-04 Thread Robert E. Billings III
OK, I'll fill out a bugzilla report. Thanks for verifying! :) Bob On Thu, Aug 4, 2011 at 11:05 AM, Stefan Bodewig wrote: > On 2011-07-28, Bob Billings wrote: > > > However, the Ant junit XML formatter strips off the first line with > > the failure message in any test fa

Re: junit task xml output omits failure message if it contains the word " more"?

2011-08-04 Thread Stefan Bodewig
On 2011-07-28, Bob Billings wrote: > However, the Ant junit XML formatter strips off the first line with > the failure message in any test failure where the failure message > contains the word " more", resulting in just the "at " line > remaining, which is

junit task xml output omits failure message if it contains the word " more"?

2011-07-28 Thread Bob Billings
t SQL scripts they checked in worked properly, whether our test data loaded correctly, etc. I was noticing that some of the test failures shown in the emails were missing the actual reason for the test failure -- they just said "at ". I've tracked down the issue to the Ant junit task

RE: Junit report for multiple projects

2011-06-20 Thread Echlin, Robert
Err - right - you are using ant , at least you are now - the original message said antcall. Is " -Original Message- > From: kasim ahmed [mailto:mail2ka...@googlemail.com] > Sent: Monday, June 20, 2011 11:01 AM > To: Ant Users List > Subject: Re: Junit report for

RE: Junit report for multiple projects

2011-06-20 Thread Echlin, Robert
Then try "Ant", instead of "Antcall". Rob > -Original Message- > From: kasim ahmed [mailto:mail2ka...@googlemail.com] > Sent: Monday, June 20, 2011 11:01 AM > To: Ant Users List > Subject: Re: Junit report for multiple projects > > sorry, junit-1

Re: Junit report for multiple projects

2011-06-20 Thread kasim ahmed
sorry, junit-1,junit-2,junit-3 are in different project and each project is having build.xml. On Mon, Jun 20, 2011 at 4:21 PM, Echlin, Robert wrote: > You are running separate copies of ant for each of the junit tests. > Instead, run them all in the same Ant invocation, and ma

RE: Junit report for multiple projects

2011-06-20 Thread Echlin, Robert
You are running separate copies of ant for each of the junit tests. Instead, run them all in the same Ant invocation, and make the "mainbuild" target depend on all of them. The above line replaces the first 4 nonblank lines (shown below) from your example. > >

Junit report for multiple projects

2011-06-19 Thread kasim ahmed
i have ant target which invokes concurrently other 3 projects ant build target for junit. this build target executes all three projects even though any one of the sub project build fails. Problem here is, if any one of sub project build fails error message should display and junit report should

Re: ANT 1.8.2 + JUnit error

2011-06-15 Thread Csatári János
It seems now it works, I just simply needed to add to the junit tasks. Anyway, thank you for your fast response! :) Kasim Ahmed írta : > in your ant-home library include ant-junit.jar( if not avaialble) and run > again. 201

Re: ANT 1.8.2 + JUnit error

2011-06-15 Thread kasim ahmed
in your ant-home library include ant-junit.jar( if not avaialble) and run again. 2011/6/15 Csatári János > Hi there! > > I have ANT 1.8.2 and also JUnit installed. However, when I would like to > use the junit task in the build.xml, I get the following error: > > build.xml:1

ANT 1.8.2 + JUnit error

2011-06-15 Thread Csatári János
Hi there! I have ANT 1.8.2 and also JUnit installed. However, when I would like to use the junit task in the build.xml, I get the following error: build.xml:188: The for must include junit.jar if not in Ant's own classpath Here's the relevant parts of the

Re: ant target for junit

2011-06-09 Thread kasim ahmed
What i have observed is, when i make wrote: > Hi, > > I am getting following error: > > Configuration problem: Failed to import bean definitions from URL location > [classpath:/esw-web-ctx.xml] Offending resource: class path resource > [applicationContext.xml]; nested exception is > org.springfram

ant target for junit

2011-06-09 Thread kasim ahmed
Hi, I am getting following error: Configuration problem: Failed to import bean definitions from URL location [classpath:/esw-web-ctx.xml] Offending resource: class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException:

Junit task results in 1.8.2

2011-03-23 Thread St. Denis, David
I am having trouble viewing the Properties >> link on my test result pages when using the junit task from Ant 1.8.2. Previously I was using Ant 1.7.0 and the Properties page rendered correctly. Looking at the page source I can see a minor difference in the way the line.separator prope

RE: Apache Ant JUnit XML Schema

2011-02-07 Thread Gary Gregory
> Sent: Monday, February 07, 2011 15:17 > To: user@ant.apache.org; d...@ant.apache.org > Subject: Apache Ant JUnit XML Schema > > Hi, > > I've been looking for a schema for the XML output produced by the JUnit and > JUnitReport tasks. Google couldn't find it for me, so

Re: Apache Ant JUnit XML Schema

2011-02-07 Thread Tom Howard
Hi Gary, For better re-usability, you might consider adding a license (The Apache License v2.0 for example, see http://www.apache.org/licenses/LICENSE-2.0.html) in a comment at the top of your schema. I've already placed the license information at xs:schema/xs:annotation/xs:documentation

Apache Ant JUnit XML Schema

2011-02-07 Thread Tom Howard
Hi, I've been looking for a schema for the XML output produced by the JUnit and JUnitReport tasks. Google couldn't find it for me, so I've created one. You can get if from http://windyroad.org/2011/02/07/apache-ant-junit-xml-schema/ Hopefully someone else might find it u

Apache Ant JUnit XML Schema

2011-02-07 Thread Tom Howard
Hi, I've been looking for a schema for the XML output produced by the JUnit and JUnitReport tasks. Google couldn't find it for me, so I've created one. You can get if from http://windyroad.org/2011/02/07/apache-ant-junit-xml-schema/ Hopefully someone else might find it u

Junit test and batch test

2011-02-07 Thread Mikael Petterson
Hi, When I run I need to run my tests in order. Shall I use the -tag? br, //mikael = Ericsson AB Mikael Petterson Software Designer Mobile: +46-(0)70-2673044 Email: mikael.petter...@ericsson.com =

RE: junit ant task

2010-10-31 Thread efe4it
Hi Maybe you could set the "timeout" property of the task, so timeout will appears in junit reports as cause for test failure. Regards Emmanuel -- View this message in context: http://ant.1045680.n5.nabble.com/junit-ant-task-tp3233265p3243947.html Sent from the Ant - Users ma

RE: junit ant task

2010-10-23 Thread Martin Gainty
manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: dean.hil...@mckesson.com > To: user@ant.apache.org > Subject: junit ant task > Date: Wed, 20 Oct 2010 09:28:04 -0700 > > So, I have a test hanging out of hundreds of tests, but unf

junit ant task

2010-10-23 Thread Hiller, Dean
So, I have a test hanging out of hundreds of tests, but unfortunately, the log of [junit] Beg com.xxx.Test is logged AFTER the test completes so I can't see what test is failing L..g..Hard to believe since ant 1.3 that this problem is still an issue and the default h

run junit categories from ant

2010-10-06 Thread Mugdha Acharya
How do you run junit categories from ant. It will be nice if someone can post an example. I have tried following Java code- @RunWith(Categories.class) @IncludeCategory(MyCategory.class) @SuiteClasses( {A.class }) // A.class has test methods with category myCategory public class MyCategorySuite

RE: junit ant task test listeners

2010-09-29 Thread Chip McCormick
-Original Message- From: Stefan Bodewig [mailto:bode...@apache.org] Sent: Monday, August 23, 2010 9:20 AM To: user@ant.apache.org Subject: Re: junit ant task test listeners On 2010-08-23, Chip McCormick wrote: > Does anyone know how to add a test listener to an ant junit t

Re: junit tests running slower in 1.8 than in 1.7

2010-08-25 Thread Laura Dean
We tried it out, and our tests ran much faster. We liked it so much that we took the Ant 1.8.1 source and applied your change to it, so we could use it for the time being. We put the source here: http://github.com/cyrusinnovation/Apache-Ant Please note that we have no intention of maintaining th

Re: junit ant task test listeners

2010-08-23 Thread Stefan Bodewig
On 2010-08-23, Chip McCormick wrote: > Does anyone know how to add a test listener to an ant junit task, > without having to create a custom task? > We are attempting to add a test listener to a junit ant task to do > custom logging after each test class in a batch completes. Ant&

junit ant task test listeners

2010-08-23 Thread Chip McCormick
Does anyone know how to add a test listener to an ant junit task, without having to create a custom task? We are attempting to add a test listener to a junit ant task to do custom logging after each test class in a batch completes. The only mention in the API of how to do this describes how to

Re: junit tests running slower in 1.8 than in 1.7

2010-08-19 Thread Laura Dean
On Thu, Aug 19, 2010 at 8:54 AM, Stefan Bodewig wrote: > The change has been implemented in svn trunk[1] and may become part of > the next Ant release.  Using svn trunk my tests run as fast (or even > faster) as they do using Ant 1.7.1. Thank you very much! We'll definitely try it out. > To be

Re: junit tests running slower in 1.8 than in 1.7

2010-08-19 Thread Stefan Bodewig
On 2010-08-08, Stefan Bodewig wrote: > I'll suggest to add a configuration option that will allow people to > disbale those requests on the dev list, but right now I can't do more > than confirm that forked JUnit tasks are slower with Ant 1.8.[01] than > with 1.7.1

Re: Can ant run non-JUnit tests that can produce Junit xml formatted output?

2010-08-16 Thread Stefan Bodewig
On 2010-08-12, tabber wrote: > 1) You suggested 'another one would be to write your own task that wraps > the exec invocation itself.' -- I am wondering what benefit it will be to do > this? A nicer syntax with less potential for errors. Contrast the completely hypothetical with

Re: Can ant run non-JUnit tests that can produce Junit xml formatted output?

2010-08-12 Thread tabber
ormat then can ANT understand the test results? -- View this message in context: http://ant.1045680.n5.nabble.com/Can-ant-run-non-JUnit-tests-that-can-produce-Junit-xml-formatted-output-tp2472091p2472975.html Sent from the Ant - Users mailing list archive at

Re: Can ant run non-JUnit tests that can produce Junit xml formatted output?

2010-08-11 Thread Stefan Bodewig
On 2010-08-11, tabber wrote: > We are evaluating ANT to setup out build process. We have a lot of our tests > written in c and functional test written in an ih house developed language. > There tests produce text output which I can parse and generate JUnit like > XML output. > Ho

Can ant run non-JUnit tests that can produce Junit xml formatted output?

2010-08-11 Thread tabber
We are evaluating ANT to setup out build process. We have a lot of our tests written in c and functional test written in an ih house developed language. There tests produce text output which I can parse and generate JUnit like XML output. How do I make ANT run these tests for each build? Is

Re: junit tests running slower in 1.8 than in 1.7

2010-08-08 Thread Stefan Bodewig
On 2010-08-08, Michael Ludwig wrote: > Stefan Bodewig schrieb am 08.08.2010 um 22:12 (+0200): >> Finally I found the reason - the enhancement that is Bugzilla Issue >> 31885. Ant writes output synchronously in order to support advanced >> test UIs. > https://issues.apache.org/bugzilla/show_bug.

Re: junit tests running slower in 1.8 than in 1.7

2010-08-08 Thread Michael Ludwig
Stefan Bodewig schrieb am 08.08.2010 um 22:12 (+0200): > Finally I found the reason - the enhancement that is Bugzilla Issue > 31885. Ant writes output synchronously in order to support advanced > test UIs. https://issues.apache.org/bugzilla/show_bug.cgi?id=31885 Great you found the cause! I mi

Re: junit tests running slower in 1.8 than in 1.7

2010-08-08 Thread Stefan Bodewig
Ant 1.7.1. I'll suggest to add a configuration option that will allow people to disbale those requests on the dev list, but right now I can't do more than confirm that forked JUnit tasks are slower with Ant 1.8.[01] than with 1.7.1. Stefan --

Re: junit tests running slower in 1.8 than in 1.7

2010-08-02 Thread Stefan Bodewig
On 2010-08-02, Laura Dean wrote: > On Wed, Jul 28, 2010 at 6:44 AM, Stefan Bodewig wrote: > ... >> OK, I'll look into this when I get access to my Windows machine again >> next week.  It didn't take more than the small test case you provided to >> see the difference, right? > Right. The small

Re: junit tests running slower in 1.8 than in 1.7

2010-08-01 Thread Laura Dean
On Wed, Jul 28, 2010 at 6:44 AM, Stefan Bodewig wrote: > ... > OK, I'll look into this when I get access to my Windows machine again > next week.  It didn't take more than the small test case you provided to > see the difference, right? Right. The small test case was enough to see the difference

Re: junit tests running slower in 1.8 than in 1.7

2010-07-28 Thread Stefan Bodewig
dd it to the > classpath, nothing changes. The tests still run slower in 1.8. This means a change in Ant's core is responsible, not in the JUnit task itself. > * Like you, I also couldn't reproduce the problem under linux. OK, I'll look into this when I get access to my Win

Re: junit tests running slower in 1.8 than in 1.7

2010-07-27 Thread Laura Dean
we cannot seem to avoid) that causes any >>> forked process to use up at least about half a second.  With 1.8.1 the >>> same logic changes have been applied to other OSes as well. >>> >>> So if you build process was forking a lot of small processes, a major >

Re: junit tests running slower in 1.8 than in 1.7

2010-07-26 Thread Laura Dean
t;> problems with hanging grandchild processes on Windows.  This changes >> have a side-effect (which we cannot seem to avoid) that causes any >> forked process to use up at least about half a second.  With 1.8.1 the >> same logic changes have been applied to other OSes as well. &g

Re: How to test a junit test case against multiple value of a property

2010-07-26 Thread shailja kumari
Used testing framework is Junit with Ant, that's the reason of this post. Thanks in advance for further help. >> extract the property to an external class and then build two tests that mocks that class with each value. >> I passed the value of class property to Ant jun

Re: How to test a junit test case against multiple value of a property

2010-07-26 Thread Leif Ershag
On Mon, Jul 26, 2010 at 12:50 PM, shailja kumari wrote: > > Hi All, > > I've got a class whose behavior changes based on a boolean property. This > property is read in the static block of the class. Is there a way to write > test JUnit testcase that can verify the behavio

How to test a junit test case against multiple value of a property

2010-07-26 Thread shailja kumari
Hi All, I've got a class whose behavior changes based on a boolean property. This property is read in the static block of the class. Is there a way to write test JUnit testcase that can verify the behavior of the class for both the values of this property? If I specify the value in build.x

Re: junit tests running slower in 1.8 than in 1.7

2010-07-23 Thread Laura Dean
OSes as well. > > So if you build process was forking a lot of small processes, a major > slowdown is to be expected. > > > We're running junit with fork=yes and forkmode=once. > > forkmode="once" should just create a single new process and you'd only

Re: junit tests running slower in 1.8 than in 1.7

2010-07-22 Thread Stefan Bodewig
On 2010-07-23, Stefan Bodewig wrote: > On 2010-07-22, Laura Dean wrote: >> For the curious, I've created a simplified project here: >> http://web.mit.edu/lgdean/Public/test-project.zip . > I'll look into it. Can't see any major differences between 1.7.1 and 1.8.1 on my Ubuntu box. Unfortunatel

Re: junit tests running slower in 1.8 than in 1.7

2010-07-22 Thread Stefan Bodewig
void) that causes any forked process to use up at least about half a second. With 1.8.1 the same logic changes have been applied to other OSes as well. So if you build process was forking a lot of small processes, a major slowdown is to be expected. > We're running junit with fork=yes and fo

Re: junit tests running slower in 1.8 than in 1.7

2010-07-22 Thread Laura Dean
he-ant-1.8.0\apps\test-project>ant test > Buildfile: build.xml > > test: >    [junit] Testsuite: SomeJUnitTest >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.203 sec >    [junit] >    [junit] Testsuite: SomeOtherJUnitTest >    [junit] Tests run: 4, Failur

RE: junit tests running slower in 1.8 than in 1.7

2010-07-21 Thread Martin Gainty
what processor have you implemented in your testbed platform? how much ram on your testbed platform? //With fork: \ANT\apache-ant-1.8.0\apps\test-project>ant test Buildfile: build.xml test: [junit] Testsuite: SomeJUnitTest [junit] Tests run: 4, Failures: 0, Errors: 0, Time elap

junit tests running slower in 1.8 than in 1.7

2010-07-21 Thread Laura Dean
tbeans.org/bugzilla/show_bug.cgi?id=182263 We're running junit with fork=yes and forkmode=once.  With forking turned off, the tests run much faster, about the same as in 1.7.  (But we want the forking for other reasons.) We're running under Windows, with jdk 1.6 and junit 4.5. Have y

AW: Timeout in junit and sysout

2010-06-18 Thread Knuplesch, Juergen
- Von: Stefan Bodewig [mailto:bode...@apache.org] Gesendet: Mittwoch, 16. Juni 2010 09:14 An: user@ant.apache.org Betreff: Re: Timeout in junit and sysout On 2010-06-16, Knuplesch, Juergen wrote: > I added the showoutput=true to my task. > Now I experience that the timeout does not wo

Re: Timeout in junit and sysout

2010-06-16 Thread Stefan Bodewig
On 2010-06-16, Knuplesch, Juergen wrote: > I added the showoutput=true to my task. > Now I experience that the timeout does not work! I wouldn't expect showoutput to have any influence on the timeout. Stefan - To unsubscribe,

AW: Timeout in junit and sysout

2010-06-15 Thread Knuplesch, Juergen
: Stefan Bodewig [mailto:bode...@apache.org] Gesendet: Samstag, 12. Juni 2010 06:40 An: user@ant.apache.org Betreff: Re: Timeout in junit and sysout On 2010-06-11, Knuplesch, Juergen wrote: > some of our Junit tests run sometimes into the timeout I have set. > Sadly we do not see any syso

AW: Timeout in junit and sysout

2010-06-13 Thread Knuplesch, Juergen
Thank you, Stefen, I will try this! -Ursprüngliche Nachricht- Von: Stefan Bodewig [mailto:bode...@apache.org] Gesendet: Samstag, 12. Juni 2010 06:40 An: user@ant.apache.org Betreff: Re: Timeout in junit and sysout On 2010-06-11, Knuplesch, Juergen wrote: > some of our Junit tests

Re: Timeout in junit and sysout

2010-06-11 Thread Stefan Bodewig
On 2010-06-11, Knuplesch, Juergen wrote: > some of our Junit tests run sometimes into the timeout I have set. > Sadly we do not see any sysouts in my logs. > Do I have to use system.out.flush or how can I make this sysouts visible? If you are using a plain logger, this should help.

Timeout in junit and sysout

2010-06-11 Thread Knuplesch, Juergen
Hello, some of our Junit tests run sometimes into the timeout I have set. Sadly we do not see any sysouts in my logs. Do I have to use system.out.flush or how can I make this sysouts visible? Juergen -- Jürgen Knupleschwww.icongmbh.de <http://www.icongmbh

Junit Task dies with NullPointerException

2010-06-06 Thread Steven Harms
Having surmounted the Ant-as-technology issue, I'm now encountering an error in my ant execution of junit. When I run my ant script, I get: java.lang.NullPointerException at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder$TestInfos.(FailureRecorder.java:349) (The full stack is

  1   2   3   4   5   6   7   >