Bug 44220

Summary: [Patch] Link to log files from junitreport generated JUnit reports
Product: Ant Reporter: Sirp Potijk <s_potijk>
Component: Optional TasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement Keywords: PatchAvailable
Priority: P2    
Version: 1.7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: This patch introduces adding logfiles to JUnit test reports

Description Sirp Potijk 2008-01-14 01:26:16 UTC
I've written a (quick) patch which allows an end user to attach logfiles to
junit generated test reports. 

The patch introduces three new optional attributes to the junitreport ant task: 
  * logDir - The base dir for the test logfiles
  * logPrefix - A prefix which may be used to distinguish the log files from the
test
results.
  * logPostfix - A postfix which defaults to '.xml' and can be used to
distinguish the
log files from the test results.

If no prefix or postfix values are used the report generator will assume the
test class
name is the name of the log file. 
If a logfile cannot be found this will be silently ignored and no link to the
logfile
will appear in the resulting JUnit report.

When a link to a log file does appear it is formatted in the same way as links
to stdour
or stderr are formatted.
Comment 1 Sirp Potijk 2008-01-14 01:28:21 UTC
Created attachment 21382 [details]
This patch introduces adding logfiles to JUnit test reports

A patch on http://svn.apache.org/repos/asf/ant/core/trunk revision 609533