Edgewall Software
Modify

Opened 13 years ago

Last modified 13 years ago

#740 new enhancement

multiple XML files for python:unittest recipe

Reported by: debacle@… Owned by: hodgestar
Priority: major Milestone:
Component: Build slave Version: 0.6b3
Keywords: Cc:
Operating System:

Description

I'm testing a Django 1.2 application with the Django xmlrunner test runner. This test runner creates multiple XML files in one directory, e.g. "xmlrunner/". It would be nice to allow globbing such as:

    <python:unittest file="xmlrunner/*.xml"/>

Furthermore, the xmlrunner output differs from the Bitten test report XML format, e.g. there seems to be no explicit "success", instead not having an "error" nor "failure" element has to be interpreted as successful outcome.

Attachments (1)

pythontools.py.diff (2.4 KB) - added by debacle@… 13 years ago.
patch

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by debacle@…

patch

comment:1 follow-up: Changed 13 years ago by hodgestar

  • Owner set to hodgestar

Thanks for the patch. I think perhaps this modified functionality belongs in a separate recipe command rather than as an extension to python:unittest. Maybe django:xmlrunner or python:xmlrunner? It would also be good if the patch came with some unittests of its own.

comment:2 in reply to: ↑ 1 Changed 13 years ago by debacle@…

Replying to hodgestar:

Thanks for the patch. I think perhaps this modified functionality belongs in a separate recipe command

Yes, this would make the code cleaner.

rather than as an extension to python:unittest. Maybe django:xmlrunner or python:xmlrunner?

The latter sounds good to me.

It would also be good if the patch came with some unittests of its own.

Sure.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain hodgestar.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.