Modify

Opened 6 years ago

#1101 new enhancement

Test system output format should be extensible and easy to parse programmatically

Reported by: Ian Hinder Owned by:
Priority: major Milestone:
Component: Cactus Version:
Keywords: Cc:

Description

The Cactus test system currently outputs a human-readable results file. It is necessary to write a simple parser for this file (e.g. in Perl or Awk) in each application that needs to understand the results. Because the output format is not extensible, it is difficult to add test-specific details in a way which does not break exising ad-hoc parsers. I propose that the test system should output its results in XML format in addition to the current format. This format is extensible and parsers exist for most languages.

I started to work on this a while ago, but have not had time to complete it. I attach a work-in-progress patch against revision 4874 of Cactus; I don't remember its status. It uses an imported Perl XML writer module (included in the patch) which seems to have a suitable licence. Since writing this, I have learned that test systems often write their output in a format compatible with the JUnit Java testing framework. As far as I can tell, this is not an officially defined format, but it is understood by many test systems (e.g. Jenkins, which I have been using recently). The code in the attached patch should be modified to output in this format.

Attachments (1)

0001-Start-work-on-XML-output-for-tests.patch (45.6 KB) - added by Ian Hinder 6 years ago.

Download all attachments as: .zip

Change History (1)

Changed 6 years ago by Ian Hinder

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from (none) to the specified user.
Next status will be 'confirmed'.
The owner will be changed from (none) to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.