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 failure where the failure

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 what shows up in CruiseControl's emai

Re: junit task issue

2009-05-27 Thread Konstantin Boudnik
That'd be very handy sometimes! +1 Juan Pablo Lis wrote: Hello All, I'm having a problem while running junit tasks, when the test is large. I'm getting an out of memory exception, but I notice that the formatter (XML) is not flushing the file while it is running, it writes the whole file at t

Re: JUnit task

2008-06-12 Thread Steve Loughran
Tim Visher wrote: Wow... let me feel sheepish for a bit as I blithely mentioned the acquisition of Ant in Action to its author (sometimes, reading signatures is helpful)... I took it at a complement. If you'd said it hadn't helped, then I'd be worried I suppose that means that help from

Re: JUnit task

2008-06-12 Thread Tim Visher
Wow... let me feel sheepish for a bit as I blithely mentioned the acquisition of Ant in Action to its author (sometimes, reading signatures is helpful)... I suppose that means that help from that book may be a little bit of a long shot, or was the junit task covered somewhat in depth in your book,

Re: JUnit task

2008-06-12 Thread Tim Visher
@Steve: I'm not too sure I understand what you're talking about. The junit task that ant 1.7 comes with works with junit 4. All of the tests I have written are 'pure' junit 4 tests and I've got the junit task running fine. I just think there needs to be better documentation written for the junit

Re: JUnit task

2008-06-12 Thread Steve Loughran
Tim Visher wrote: Thanks, I actually had done that query already and couldn't come up with anything particularly good. Most of it is outdated (JUnit 3, Ant 1.3, 1.5, etc.) and I don't really have time to translate them with almost 0 knowledge of ant. I was hoping for a little bit more focussed

Re: JUnit task

2008-06-11 Thread Tim Visher
Thanks, I actually had done that query already and couldn't come up with anything particularly good. Most of it is outdated (JUnit 3, Ant 1.3, 1.5, etc.) and I don't really have time to translate them with almost 0 knowledge of ant. I was hoping for a little bit more focussed help. However, ther

Re: JUnit task

2008-06-11 Thread supareno
check out this... http://www.google.fr/search?source=ig&hl=en&rlz=&=&q=junit+and+ant+tutorials Hello everyone, I'm struggling to understand the junit task. I was wondering if anyone knew of a good tutorial or article that is current (junit 4, ant 1.7) that is perhaps slightly better than the ju

RE: junit task classpath issue, can't find jdbc drivers?

2007-09-10 Thread Preston, Brian
27;t tried it yet, I was a little wary of fork for some unfounded fear of runaway processes or something. But it worked, so it's all good. Thanks! -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 6:36 AM To: Ant Users List Subject:

Re: junit task classpath issue, can't find jdbc drivers?

2007-09-10 Thread Steve Loughran
Preston, Brian wrote: Is there a common 'gotcha' with running the junit task and classpaths? Because I'm having a problem where my tests run against the database, so they need the drivers on the classpath, and they're not being found. Here's the error : java.sql.SQLException: No suitable drive

Re: JUnit task and the 'fork' attribute...

2007-01-30 Thread Andrew Close
Peter, thanks for your response. the simple solution was to add the junit.jar to my ant lib/ dir. duh. thanks for 'reminding' me of the verbose feature. i'll try to be a bit more diligent in the future. ;) andy On 1/29/07, Peter Reilly <[EMAIL PROTECTED]> wrote: try with ant -verbose. Th

Re: JUnit task and the 'fork' attribute...

2007-01-29 Thread Peter Reilly
try with ant -verbose. This problem can happen with having old versions of ant in the classpath of the forked junit task. In this case the contents of lib.path should be looked at. (common causes would be jars that have embedded ant classes - fo example weblogic.jar and jrun.jar) In the current

Re: junit task sometimes creates zero-length result files

2006-01-28 Thread Stefan Bodewig
On Fri, 27 Jan 2006, Carlton Brown <[EMAIL PROTECTED]> wrote: > The ant task seems to create zero-length output files for a > few of my unit test classes. Which version of Ant are you using? There have been some problems with tests running into timeouts or crashing the VM, but they are supposed

Re: junit task sometimes creates zero-length result files

2006-01-27 Thread Dominique Devienne
On 1/27/06, Brown, Carlton <[EMAIL PROTECTED]> wrote: > The ant task seems to create zero-length output files for a few > of my unit test classes. It does so without reporting any errors but > of course of course chokes on them complaining about > premature EOF. > Does anyone have any suggestio

Re: JUnit task

2005-12-06 Thread Dominique Devienne
> >That's given your basedir as a pathelement - how about giving it the > >"testing" directory instead? Isn't that the base of the testing classes? > > But I think that is correct. > The base dir is, say, xxx. The testing dir sits below this with tests that > are in the testing package. > So sitti

Re: JUnit task

2005-12-06 Thread andy wix
Phew, got there in the endthanks for the help. cheers Andy _ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ---

RE: JUnit task

2005-12-06 Thread Jon Skeet
> >That's given your basedir as a pathelement - how about giving it the > >"testing" directory instead? Isn't that the base of the > testing classes? > > But I think that is correct. > The base dir is, say, xxx. The testing dir sits below this > with tests that are in the testing package. > So

Re: JUnit task

2005-12-06 Thread andy wix
That's given your basedir as a pathelement - how about giving it the "testing" directory instead? Isn't that the base of the testing classes? But I think that is correct. The base dir is, say, xxx. The testing dir sits below this with tests that are in the testing package. So sitting in my x

RE: JUnit task

2005-12-06 Thread Jon Skeet
> > > so it seems the fileset bit works (finds the test) but > JUnit doesn't > >have > > > the classpath. > > > >Simply because you didn't provide any ;-) > > > >You'd need a nested (within ) with at least your > >"testing" directory, and any other jar(s) or directory(ies) > required to > >run

Re: JUnit task

2005-12-06 Thread andy wix
> so it seems the fileset bit works (finds the test) but JUnit doesn't have > the classpath. Simply because you didn't provide any ;-) You'd need a nested (within ) with at least your "testing" directory, and any other jar(s) or directory(ies) required to run the tests. --DD At the danger o

Re: JUnit task

2005-12-05 Thread Dominique Devienne
> > > > > > > > > > > > so it seems the fileset bit works (finds the test) but JUnit doesn't have > the classpath. Simply because you didn't provide any ;-) You'd need a nested (within ) with at least your "testing" directory, and any other jar(s) or directory

Re: JUnit task not working

2005-11-11 Thread Clifton Craig
I see you're using the ant-junit.jar file. That is the Ant Task wrapper for Junit and you shouldn't need to reference it ordinarily. It's there to define the JUnit task and doesn't include the JUnit core API. You need to include junit.jar in Ant's CLASSPATH or in the CLASSPATH of an explicit tas

RE: JUnit task not working

2005-11-10 Thread Jon Skeet
> When i run the ant junit task i get the following error : Have you looked at the FAQ entry about Junit? See http://ant.apache.org/faq.html#delegating-classloader Have you placed your junit jar file (not the Ant one, Junit itself) in the ant\lib directory? Jon Clearswift monitors, controls a

Re: JUnit Task Working Directory

2005-08-21 Thread Stefan Bodewig
On Sat, 20 Aug 2005, Alan Gutierrez <[EMAIL PROTECTED]> wrote: > Is there a way to change directory, or can/should I pass in the > base direcotry using sysproperty? Yes, has a dir attribute, which only works if you run the task with fork="true". Stefan -

Re: JUnit task - how to call single test method

2005-07-18 Thread Peter Reilly
see: http://issues.apache.org/bugzilla/show_bug.cgi?id=34748 Peter Conor MacNeill wrote: Ah, sorry - you are right - no way AFAIK. Conor Martin Burger wrote: Conor MacNeill schrieb am 18.07.2005 13:01: Look at the element. Also, for an example, look at Ant's build file.

Re: JUnit task - how to call single test method

2005-07-18 Thread Conor MacNeill
Ah, sorry - you are right - no way AFAIK. Conor Martin Burger wrote: > Conor MacNeill schrieb am 18.07.2005 13:01: > >> Look at the element. >> >> >> >> Also, for an example, look at Ant's build file. >> > > That executes all test methods defined in $testcase, doesn't? > > I looked mea

Re: JUnit task - how to call single test method

2005-07-18 Thread Martin Burger
Conor MacNeill schrieb am 18.07.2005 13:01: Look at the element. Also, for an example, look at Ant's build file. That executes all test methods defined in $testcase, doesn't? I looked meantime at the source code, I think it is not possible to execute a single test method. JUnitTask

Re: JUnit task - how to call single test method

2005-07-18 Thread Conor MacNeill
Martin Burger wrote: > Hello, > > using the JUnit task is it possible to execute a single test _method_? > Look at the element. Also, for an example, look at Ant's build file. Conor - To unsubscribe, e-mail: [EMAIL P

RE: JUnit task problem

2005-02-17 Thread Frank W. Zammetti
t; http://www.manning-source.com/books/hatcher/hatcher_ch04.pdf (sample > chapter Testing with JUnit, from Java Development with Ant). > > Kajsa Anderson > >> -Original Message- >> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] >> Sent: Thursday, February 17,

RE: JUnit task problem

2005-02-17 Thread Dominique Devienne
obably want the first formatter. ... > -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 1:45 PM > To: Ant Users List > Subject: RE: JUnit task problem > > I though

RE: JUnit task problem

2005-02-17 Thread Kajsa.Anderson
h Ant). Kajsa Anderson > -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 1:45 PM > To: Ant Users List > Subject: RE: JUnit task problem > > > I thought of that too... I wasn't sure it it was needed or

RE: JUnit task problem

2005-02-17 Thread Frank W. Zammetti
I thought of that too... I wasn't sure it it was needed or not so I left it out just to have a slightly simpler class... however, I did try putting it in and it doesn't make the error go away. I'll leave it in for now anyway, but that doesn't seem to be it. -- Frank W. Zammetti Founder and Chief

RE: JUnit task problem

2005-02-17 Thread Kajsa.Anderson
I think your test class needs a constructor (inserted below). > -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 11:29 AM > To: user@ant.apache.org > Subject: JUnit task problem > > > Hi again... having a bit of problem with my f

Re: junit task halts

2004-12-08 Thread Laconia Data Systems
Dear Black: I just love the easy ones Your test target creates XML output by default unless you tell the formatter to output to txt take a look at http://ant.apache.org/manual/OptionalTasks/junit.html the output should be com.mytests.test.*.xml the output Doesnt really do much good unless you use a

Re: junit task halts

2004-12-06 Thread Ivan Ivanov
Hi, I note that you are using httpunit which makes me consider that your tests try to connect to some server. If so are you sure the server is running? Your tests might wait for it. Could you also try timeout attribute of junit task? Set it first to some short value to observe what is happening.