Instrumenting deployment artifacts within a multi-module Maven build

View: New views
1 Messages — Rating Filter:   Alert me  

Instrumenting deployment artifacts within a multi-module Maven build

by James Carpenter-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I have been working on how to instrument the deployment artifact (WAR, etc.) of a multi-module maven build.  To do this I have taught each sibling module to provide the cobertura.ser and sources as an attached artifact whenever the relevant profile is engaged.  A sibling module finally pulls all of this together using the assembly plugin.  This sibling builds an archive containing the relevant source, cobertura.ser files to merge, and an ant script which generates the report.  To build the report the ant script performs a few ser file merges and then generates an html report referencing the source files and merged ser files.

 

This should not be confused with the more typical Maven Cobertura plugin usage, which focuses on unit test coverage analysis.  Instead the focus is on evaluating the coverage provided by higher level integration tests which are run once the deployment artifact has been deployed into a test environment.

 

I am starting to work out Maven site documentation I hope to contribute as a patch to the Cobertura Maven plugins.  I just wanted to ask ahead of time, if anyone here already has a strong opinion on how this should/shouldn’t be done.  Upon review by the maintainers I’m fairly confident my changes will be considered reasonable.  Assuming they are it would be nice to have a new release version of the Maven plugins pushed out fairly quickly once I submit the patch.  This would allow me to quickly move away from using an in-house release of the same.

 

I also expect the patch to contain a small change to the instrument goal to support including the cobertura.ser file as an attached artifact.  This can be done now using the build-helper plugin, but it is not nearly as clean to do so.

 

Thanks again for your feedback.

 

Sincerely,

James Carpenter


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel