Menu

bug 739843 - indirect subclasses of TestCase

Developers
bruno
2006-01-16
2013-04-09
  • bruno

    bruno - 2006-01-16

    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?

     
    • Paul Browne

      Paul Browne - 2006-01-16

      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.

       
    • bruno

      bruno - 2006-01-16

      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... :-(  )

       
    • bruno

      bruno - 2006-01-16

      (ok, alredy knows how to send patch...)

       
    • bruno

      bruno - 2006-01-16

      Paul,

      Sory, but I don't know how to attach the file to the bugtracker...

       
      • Paul Browne

        Paul Browne - 2006-01-17

        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

         
        • bruno

          bruno - 2006-01-17

          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

           
          • Paul Browne

            Paul Browne - 2006-01-18

            I've added you to the project - can you try again?

            Failing that , can you email me at paulbrowne at users.sourceforge.net?

             

Log in to post a comment.