Bug 44220 - [Patch] Link to log files from junitreport generated JUnit reports
Summary: [Patch] Link to log files from junitreport generated JUnit reports
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.7.0
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2008-01-14 01:26 UTC by Sirp Potijk
Modified: 2009-07-31 07:27 UTC (History)
0 users



Attachments
This patch introduces adding logfiles to JUnit test reports (4.24 KB, patch)
2008-01-14 01:28 UTC, Sirp Potijk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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