Skip to content

andreschaefer/summary-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

summary-maven-plugin

System Status
CI master Build Status
CI develop Build Status
Dependency Maven Central

Plugin that gathers test report files creates a summery.

In multi mudole project buils each module reports its test results when the module is build. Within environments without fancy test result parsing it is a pain to gather actual test results in long log files. This plugin can be run after such a build to print a combined result.

Usage

Add maven plugin to build declaration

<build>
	<plugins>	
		<plugin>
			<groupId>com.namics.oss.maven</groupId>
			<artifactId>summary-maven-plugin</artifactId>
			<version>1.0.0</version>
		</plugin>
	</plugins>
</build>

Perform all tests of your project with fail at end option to get all results at once. After that you can run the summary plugin to get a nice report.

mvn clean verify -fae
# ... output

mvn summary:summary

Find your report like

[INFO] --- summary-maven-plugin:1.0.0-SNAPSHOT:summary (default-cli) @ m-connect ---
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] |  Test Report                                                         |
[INFO] ------------------------------------------------------------------------
[WARNING] [com.namics.oss.FailingTest.somethingThatFailes:22] java.lang.AssertionError: 

Expected: <10>
     but: was <15>
	at com.namics.oss.FailingTest.somethingThatFailes(FailingTest.java:22)
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO]  	total   :        989
[INFO]  	errors  :          0
[ERROR] 	failed  :          1
[INFO]  	skipped :          8
[INFO]  	success :      99.09% in 19.06 s
[INFO] ------------------------------------------------------------------------

About

Plugin that gathers test report files creates a summery.

Resources

License

Stars

Watchers

Forks

Packages

No packages published