11 Replies Last post: Feb 16, 2007 9:06 AM by Kirill Maximov  
Jacques Morel Expert 1,547 posts since
Aug 20, 2002
Currently Being Moderated

Feb 5, 2007 10:55 PM

How to incorporate third-party product reports (like jdepend, cobertura)

First, let me say that I have been really impressed by the product so far. The combination of build grid, remote build, notifications options and user friendly UI makes it a very attractive  offering! Keep up the good work.

 

Since it is such a nice tool... I am in the process to migrate our project from cruisecontrol. We have made some CC extensions in order to see the reports of different tools we use to measure quality:

1. fitnesse

2. jdepend

3. checkstyle

4. cobertura

...

 

These tools may be broken down into

1. single file reports and

2. multi-files, iframe based reports.

 

It is easy to integrate the single file reports through an artifact definition.

It isn't for the multi-file kind.

 

So here to my question: what would be the best way to integrate them?

 

I can see 2 ways:

1. a simple way : no visual integration, just a link to the report index page. The agent somehow copies all report files

2. a comprehensive way : same as 1. but TC shows report display in another tab like emma does I believe

 

I would like to get 1. running as soon as possible.

I would like to get to 2. eventually. Is emma/coverage plugin source available? Where can I find information about hosting the project in jetbrains subversion/jira/wiki?

 

Thanks in advance

 

Jacques

Kirill Maximov JetBrains 2,033 posts since
Aug 23, 2002
Currently Being Moderated
Feb 7, 2007 2:19 PM in response to: Jacques Morel
Re: How to incorporate third-party product reports (like jdepend, cobertura

Hello Jacques,

 

   Regarding the first way. In fact, you can specify a whole directory with your report files in artifacts path, so the whole directory can be specified as artifact and will be browseable from TeamCity pages.

 

  The second way involves development of TeamCity server-side plugin. For emma reports, we upload an archive with all html reports and access it's content as a whole.

 

  The sources of server-side part of EMMA coverage plugin I've just attached to

  http://www.jetbrains.net/confluence/display/TW/Plugin+Development page. This page contains general information on how to create plugins and deploy them with TeamCity. Sorry, it is rather incomplete but still useful for general overview.

 

  Hope this helps and please feel free to ask questions,

 

  KIR

Tim McNerney Novice 188 posts since
Aug 21, 2002
Currently Being Moderated
Feb 7, 2007 9:08 PM in response to: Kirill Maximov
Re: How to incorporate third-party product reports (like jdepend, cobertura

Thanks for the sample. I think that will be a huge help for me.

 

--Tim

Tim McNerney Novice 188 posts since
Aug 21, 2002
Currently Being Moderated
Feb 8, 2007 8:31 PM in response to: Jacques Morel
Re: How to incorporate third-party product reports (like jdepend, cobertura

Macker. Checkstyle.

 

They work well enough in the artifacts directory except that you only know to dig into them if there is a problem.

 

--Tim

Dave Griffith Expert 2,784 posts since
Aug 21, 2002
Currently Being Moderated
Feb 8, 2007 7:19 PM in response to: Jacques Morel
Re: How to incorporate third-party product reports (like jdepend, cobertura

Looking at a tighter integration, I would think that in order to speed the creation of third-party report support you should create a generic "report inclusion" plugin: That plugin would take a generated report as an index.html linking to a bunch of detail pages in a subdirectory content/<detail page>.html and it would add a tab and display the report in it.

 

This would rule greatly.  Even relatively prosaic build steps like javadoc and junitreport would benefit from this.  There are so many things that this would work for, I just wonder if the tab rendering code is up to handling >20 tabs.

 

--Dave Griffith

Dave Griffith Expert 2,784 posts since
Aug 21, 2002
Currently Being Moderated
Feb 8, 2007 9:27 PM in response to: Jacques Morel
Re: How to incorporate third-party product reports (like jdepend, cobertura

I've created an issue that would enable 2) automatically for a large number of cases : http://www.jetbrains.net/jira/browse/TW-1665 .  Please vote and comment.  I feel this would be a very powerful way of making TeamCity extensible, and would probably be very easy to implement.

 

--Dave Griffith

Dave Griffith Newbie 34 posts since
Dec 11, 2006
Currently Being Moderated
Feb 15, 2007 6:01 PM in response to: Jacques Morel
Re: How to incorporate third-party product reports (like jdepend, cobertura

Definitely open an issue. Getting showing third party rollups in summaries (and notifications!) would indeed be very cool.

 

--Dave Griffith

Kirill Maximov JetBrains 2,033 posts since
Aug 23, 2002
Currently Being Moderated
Feb 16, 2007 9:06 AM in response to: Jacques Morel
Re: How to incorporate third-party product reports (like jdepend, cobertura

Thanks again for this quick turn around time. As

Dave, I am hooked. In addition if you are turning

around this thing that quickly, this is enjoyable.

When can we expect the new build?

 

   We'll try hard to bring out the next build in the middle of the next week.

 

  Regards,

  KIR

More Like This

  • Retrieving data ...