You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2016/09/25 12:57:21 UTC

[jira] [Closed] (SUREFIRE-737) Report any extra attributes attached to a test

     [ https://issues.apache.org/jira/browse/SUREFIRE-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Digana closed SUREFIRE-737.
---------------------------------
    Resolution: Won't Fix
      Assignee: Tibor Digana

The patch is too old. Looking for a more generic approach in Version 3.x where more than title is customized.

> Report any extra attributes attached to a test
> ----------------------------------------------
>
>                 Key: SUREFIRE-737
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-737
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Report Plugin
>            Reporter: Rex Hoffman
>            Assignee: Tibor Digana
>            Priority: Minor
>         Attachments: extra_attributes_patch.txt
>
>
> So if there are any extra attributes on a junit test result (possible, due to lack of schema) print them out in the html report.
> Useful for adding in links, and image tags.
> Umm attached an extra bit of functionality, allows a user to set a name for the report, useful if you do something like:
> ...
> <reportPlugins combine.children="append">
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-report-plugin</artifactId>
> 		<version>2.8.1</version>
> 		<reportSets>
> 			<reportSet>
> 				<id>integration-test-report</id>
> 				<reports>
> 					<report>report-only</report>
> 				</reports>
> 				<configuration>
> 					<name>Surefire (Integration)</name>
> 					<aggregate>true</aggregate>
> 					<detail>true</detail>
> 					<outputName>integration-test-report</outputName>
> 					<reportsDirectory>${basedir}/target/failsafe-reports/junitreport</reportsDirectory>
> 				</configuration>
> 			</reportSet>
> 		</reportSets>	
> 	</plugin>		
> 	<plugin>
> 		<groupId>org.apache.maven.plugins</groupId>
> 		<artifactId>maven-surefire-report-plugin</artifactId>
> 		<version>2.8.1</version>
> 		<reportSets>
> 			<reportSet>
> 				<id>unit-test-report</id>
> 				<reports>
> 					<report>report-only</report>
> 				</reports>
> 				<configuration>
> 					<name>Surefire (Unit)</name>
> 					<detail>true</detail>
> 					<outputName>unit-test-report</outputName>
> 					<reportsDirectory>${basedir}/target/surefire-reports/junitreport</reportsDirectory>
> 				</configuration>
> 			</reportSet>
> 		</reportSets>
> 	</plugin>
> 	....



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)