skaliber / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Support Cruise CI server. #291

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be great if it were possible to specify the path (both filesystem-
and URL-wise) to the reports' assets (CSS, JS, images, etc) root via the
MSBuild task and command-line runner.

We're setting up Thoughtworks' new Cruise CI system, and publishing reports
to it as build-artifacts.  However, the reports don't render so nicely
without the assets, which means that without this feature we have to
publish the assets to the build server to store, per build.  It would be
very convenient to just have them be at a certain known location instead.

Original issue reported on code.google.com by peter.mo...@gmail.com on 21 Aug 2008 at 8:49

GoogleCodeExporter commented 8 years ago
You can indeed specify where the assets live.
Take a look at the Gallio-Report.ccnet-details.xsl file in extras\CCNet.  That 
might
give you some ideas.

For CCNet integration, we also have a little plugin that provides access to 
embedded
attachments (images, etc.) within the reports.  You'll probably want to build
something like that for Cruise too.

In any case, I would appreciate it if you could help us support Cruise CI 
server by
contributing back any new infrastructure you build.

Original comment by jeff.br...@gmail.com on 18 Sep 2008 at 8:55

GoogleCodeExporter commented 8 years ago

Original comment by jeff.br...@gmail.com on 11 Nov 2008 at 8:32

GoogleCodeExporter commented 8 years ago
It's quite hard to make Gallio run smoothly with CruiseControl.NET!

After playing around for some days, there are two things:

Please include the 'How to use Gallio with CruiseControl.Net' text file with 
the  
next release in the 'Gallio\extra\CCNet' folder. It's not a big thing, but it 
can 
save you a lot of time :).

Attached is an enhancement to the webdashboard: I created an xsl file that 
shows a 
nice little Gallio summary on the Project Build page (instead of the ugly and 
misleading 'No tests' standard summary). The attached file contains also an 
updated 
version of the 'How to use Gallio with CruiseControl.Net' document.

Hope this helps.

Regards
Thomas

Original comment by thomaswe...@googlemail.com on 18 Feb 2009 at 9:24

Attachments:

GoogleCodeExporter commented 8 years ago
Another remark:

If you want to include statistics, add the following to ccnet.config to the 
<publishers> section after <merge>:

      <statistics>
        <statisticList>
          <firstMatch name="TestCount" xpath="//*[local-name()='statistics' and 
namespace-uri()='http://www.gallio.org/']/@testCount"/>
          <firstMatch name="TestSteps" xpath="//*[local-name()='statistics' and 
namespace-uri()='http://www.gallio.org/']/@stepCount"/>
          <firstMatch name="TestsRun" xpath="//*[local-name()='statistics' and 
namespace-uri()='http://www.gallio.org/']/@runCount"/>
          <firstMatch name="TestFailures" xpath="//*[local-name()='statistics' and 
namespace-uri()='http://www.gallio.org/']/@failedCount"/>
          <firstMatch name="TestsPassed" xpath="//*[local-name()='statistics' and 
namespace-uri()='http://www.gallio.org/']/@passedCount"/>
          <firstMatch name="TestsInconclusive" xpath="//*[local-name()='statistics' 
and namespace-uri()='http://www.gallio.org/']/@inconclusiveCount"/>
          <firstMatch name="TestAsserts" xpath="//*[local-name()='statistics' and 
namespace-uri()='http://www.gallio.org/']/@assertCount"/>
          <firstMatch name="TestSkipped" xpath="//*[local-name()='statistics' and 
namespace-uri()='http://www.gallio.org/']/@skippedCount"/>
          <firstMatch name="TestDuration" xpath="//*[local-name()='statistics' and 
namespace-uri()='http://www.gallio.org/']/@duration"/>
        </statisticList>
      </statistics>

Maybe you should consider giving the default namespace in the gallio report a 
prefix, like so:
<report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:gallio="http://www.gallio.org/">

Although this would be somewhat of a 'breaking change', it would greatly 
simplify 
writing XPath queries (what you have to in various ways when integrating Gallio 
with 
CC.Net).

The above lines would then become as simple as this:
<firstMatch name="TestCount" xpath="//gallio:statistics/@testCount"/>

Original comment by thomaswe...@googlemail.com on 19 Feb 2009 at 9:11

GoogleCodeExporter commented 8 years ago

Original comment by jeff.br...@gmail.com on 29 Jun 2009 at 8:32

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 14 Jun 2011 at 5:53