Integration with CruiseControl.Net

65 views
Skip to first unread message

prok...@gmail.com

unread,
Nov 20, 2008, 2:57:40 PM11/20/08
to gallio-dev
I've seen several posts mention a guide for CC.NET integration. Can
someone point me at that? I've kicked around the site and the
documentation, but so far have come up dry. Thanks!

jeff....@gmail.com

unread,
Nov 20, 2008, 4:08:32 PM11/20/08
to galli...@googlegroups.com
Unfortunaly it's not in the book yet.

Look in the extras folder of the Gallio integration.

Please let me know if you need any assistance.

Eric Hexter

unread,
Nov 20, 2008, 4:52:38 PM11/20/08
to gallio-dev
I was just configureing this today. I can put together a summary but
I seem to be missing a piece of how to hook up the attachments to the
dashboard.

Steps to integrate.

1. merge the Gallio xml files in your ccnet project
2. Drop the file from the Gallio\extra\CCNet\webdashboard folder
bin goes into the bin folder
gallio goes into the dashboard root.
3. Edit the Dashboard.config and add the folloing <buildPlugins> node.
<buildLogBuildPlugin />
<xslReportBuildPlugin description="Gallio Test Report"
actionName="GallioTestReport" xslFileName="gallio\xsl\Gallio-
Report.ccnet-details.xsl"/>
<xslReportBuildPlugin description="Gallio Test Report (Condensed)"
actionName="GallioTestReportCondensed" xslFileName="gallio\xsl\Gallio-
Report.ccnet-details-condensed.xsl"/>
4. what needs to be done to get the attachements hooked up?


jeff....@gmail.com

unread,
Nov 20, 2008, 5:47:27 PM11/20/08
to galli...@googlegroups.com
That should be it.
I wonder if the plugin for ccnet is being loaded (that's what the bin is for). It is compiled for ccnet v1.4.

Alternately is your build emitting a report in xml-inline format?

Jeff.

-----Original Message-----
From: Eric Hexter <er...@hexterconsulting.com>
Date: Thursday, Nov 20, 2008 1:52 pm
Subject: Re: Integration with CruiseControl.Net
To: gallio-dev <galli...@googlegroups.com>Reply-To: galli...@googlegroups.com


Eric Hexter

unread,
Nov 21, 2008, 4:29:10 PM11/21/08
to gallio-dev
I I think I am just generating html and xml reports. I will switch to
inline. I will put together a blog post once I get this all working.
The resource page is currently saying cannot find attachment with
ID=xxx so I think the inline will be the trick.
> 4. what needs to be done to get the attachements hooked up?- Hide quoted text -
>
> - Show quoted text -

Eric Hexter

unread,
Nov 24, 2008, 3:05:54 PM11/24/08
to gallio-dev
I found a problem in the CCNet plug in. Looks like an xml node name
changed from packageRun to testPackageRun.
Once I made this change and redeployed to the webdashboard bin
directory the attachements started working.

I can email the patch if needed. Here are the contents of the patch.

thanks, Eric

Index: CCNet.Gallio.WebDashboard.Plugin/GallioAttachmentBuildAction.cs
===================================================================
--- CCNet.Gallio.WebDashboard.Plugin/GallioAttachmentBuildAction.cs
(revision 1453)
+++ CCNet.Gallio.WebDashboard.Plugin/GallioAttachmentBuildAction.cs
(working copy)
@@ -70,7 +70,7 @@

private static XPathNavigator FindTestStepNode(XPathNavigator
rootNavigator, IXmlNamespaceResolver resolver, string stepId)
{
- foreach (XPathNavigator testStepNavigator in
rootNavigator.Select(@"//g:report/g:packageRun/
descendant::g:testStepRun/g:testStep", resolver))
+ foreach (XPathNavigator testStepNavigator in
rootNavigator.Select(@"//g:report/g:testPackageRun/
descendant::g:testStepRun/g:testStep", resolver))

Eric Hexter

unread,
Nov 24, 2008, 7:55:06 PM11/24/08
to gallio-dev
I created an issue for the change to the CCnet plug-in and attached
the patch.

http://code.google.com/p/mb-unit/issues/detail?id=349

Jeff Brown

unread,
Nov 25, 2008, 2:10:36 PM11/25/08
to galli...@googlegroups.com
Oops!
Thanks for the heads-up on this.

Jeff.

-----Original Message-----
From: galli...@googlegroups.com [mailto:galli...@googlegroups.com] On
Behalf Of Eric Hexter
Sent: Monday, November 24, 2008 4:55 PM
To: gallio-dev
Subject: Re: Integration with CruiseControl.Net


Eric Hexter

unread,
Nov 26, 2008, 8:10:38 PM11/26/08
to gallio-dev
I now see why I had these silly questions. The Text file that
describes how to use the CCNet plugin is not included in the Gallio
Installation. I stumbuled

Specifically this file is not referenced and included in the
installation package. This layouts the steps needed to integrate the
reports into cruise control.

http://mb-unit.googlecode.com/svn/trunk/v3/src/Extensions/CCNet/docs/How%20to%20use%20Gallio%20with%20CruiseControl.Net.txt

Jeff Brown

unread,
Nov 27, 2008, 2:34:02 AM11/27/08
to galli...@googlegroups.com
Oh dear.
Fixed now.

Jeff.

-----Original Message-----
From: galli...@googlegroups.com [mailto:galli...@googlegroups.com] On
Behalf Of Eric Hexter
Sent: Wednesday, November 26, 2008 5:11 PM
To: gallio-dev
Subject: Re: Integration with CruiseControl.Net


Jeff Brown

unread,
Apr 9, 2009, 2:19:02 PM4/9/09
to RunXc1, galli...@googlegroups.com
Adding test summary information to the CCNet emails turns out to be a
complex process involving a volunteer with some free time to create a
lightweight summary report suitable for emails...

As a stop-gap you can grab the Gallio-Report.txt.xsl and
Gallio-Report.common.xsl files from the Gallio bin\Resources folder and drop
them into the CCNet server\xsl folder.

Then edit ccnet.exe.config and ccservice.exe.config to add an entry within
the "xslFiles" element. eg.

<xslFiles>
<file name="xsl\header.xsl"/>
<file name="xsl\modifications.xsl"/>
<file name="xsl\compile-msbuild.xsl"/>
<file name="xsl\Gallio-Report.txt.xsl"/>
</xslFiles>

The output of the text report isn't really great for emails but with just a
little effort I'm sure it can be cut down to the essentials and prettified.

Anyone want to give it a shot?

Jeff.

-----Original Message-----
From: RunXc1 [mailto:run...@gmail.com]
Sent: Thursday, April 09, 2009 10:55 AM
To: Jeff Brown
Subject: Re: Integration with CruiseControl.Net

I have been able to get the test results to show up in the web dashboard now
but how do you get them to show up in the Email that Cruise Control
Generates.

> http://mb-unit.googlecode.com/svn/trunk/v3/src/Extensions/CCNet/docs/...
> o%20use%20Gallio%20with%20CruiseControl.Net.txt

RunXc1

unread,
Apr 10, 2009, 10:50:08 AM4/10/09
to gallio-dev
Where should I post the file. I have it looking fairly decent. I
basically took one of .xsl files from the web dashboard and added the
css <style></style> inline.
> > o%20use%20Gallio%20with%20CruiseControl.Net.txt- Hide quoted text -

Jeff Brown

unread,
Apr 10, 2009, 2:16:18 PM4/10/09
to galli...@googlegroups.com, gallio-dev
You can attach it to an issue in the gallio bug tracker. I would post
a direct link but I am on my iPhone.
Reply all
Reply to author
Forward
0 new messages