Hi, I'm interested in implementing bug 739843 - NoUnit fails with indirect subclasses of TestCase.
How can I do this? attach a patch on the bug tracker?
I'm thinking about using JDom's XPath to query for classes that extends TestCase, and then, recursively query for those that implements each of thease classes and so on. What do you think about this aproach?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, a patch on the bug tracker is the best way - just base it on the latest version of code from CVS.
Using Xpath for this one is a good idea. You could either make the change in the XSLT (my Favourite) or in Java using JDOM (as you suggest). Either way, the code is very similar and the result is the smae.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's done. I had to include jaxen and update jdom to have the xpath suport...
But the Test classes that indirectly extends TestCase yet appears in the report because they are selected out in the xsl... I don't know there is a way to corect this in the xsl...
Maybe we could think about an attribute on the classe elements, indicating that they should appear in the report... It would be nice if we wanted to configure wich classes (or packages) we want to appear in the report... In my case, for example, we just test a set of the classes and we don't want the others to be messured as no-tested...
Don't know how to send my patch yet... (if it's desired... ;-) )
(sory for the bad english... :-( )
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On the bug page, there is a section (near the bottom) called 'Check to Upload and Attach a File'
that should let you submit choose and attach a file from your computer.
Thanks
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I'm interested in implementing bug 739843 - NoUnit fails with indirect subclasses of TestCase.
How can I do this? attach a patch on the bug tracker?
I'm thinking about using JDom's XPath to query for classes that extends TestCase, and then, recursively query for those that implements each of thease classes and so on. What do you think about this aproach?
Bruno,
Thanks for the message!
Yes, a patch on the bug tracker is the best way - just base it on the latest version of code from CVS.
Using Xpath for this one is a good idea. You could either make the change in the XSLT (my Favourite) or in Java using JDOM (as you suggest). Either way, the code is very similar and the result is the smae.
It's done. I had to include jaxen and update jdom to have the xpath suport...
But the Test classes that indirectly extends TestCase yet appears in the report because they are selected out in the xsl... I don't know there is a way to corect this in the xsl...
Maybe we could think about an attribute on the classe elements, indicating that they should appear in the report... It would be nice if we wanted to configure wich classes (or packages) we want to appear in the report... In my case, for example, we just test a set of the classes and we don't want the others to be messured as no-tested...
Don't know how to send my patch yet... (if it's desired... ;-) )
(sory for the bad english... :-( )
(ok, alredy knows how to send patch...)
Paul,
Sory, but I don't know how to attach the file to the bugtracker...
On the bug page, there is a section (near the bottom) called 'Check to Upload and Attach a File'
that should let you submit choose and attach a file from your computer.
Thanks
Paul
Sory Paul, but this section doesn't appear to me. I Can see an empty list of "attached files", but no buttons or links...
Should I join the project in any way to get the rights to submit this?
tks
I've added you to the project - can you try again?
Failing that , can you email me at paulbrowne at users.sourceforge.net?