vrakeshreddy / mb-unit

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

Hudson Gallio plugin gets a Java error when publishing the report #614

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The Gallio unit tests are running fine in Hudson, but if I select the 
Hudson configuration option to “Publish Gallio test result report” a Java 
exception occurs at the end of the build.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Version 3.1 build 397

Please provide any additional information below.

Console output from Hudson appears below

Gallio Echo - Version 3.1 build 397
Get the latest version at http://www.gallio.org/

Start time: 5:36 AM
Initializing the runtime and loading plugins.
Verifying test files.
Initializing the test runner.
Running the tests.
Generating reports.
Disposing the test runner.
Stop time: 5:36 AM (Total execution time: 7.117 seconds)

78 run, 78 passed, 0 failed, 0 inconclusive, 0 skipped

Recording Gallio tests results
FATAL: hudson/AbortException.<init>(Ljava/lang/String;)V
java.lang.NoSuchMethodError: hudson/AbortException.<init>
(Ljava/lang/String;)V
        at hudson.plugins.gallio.GallioPublisher.recordTestResult
(GallioPublisher.java:146)
        at hudson.plugins.gallio.GallioPublisher.perform
(GallioPublisher.java:99)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep
(AbstractBuild.java:372)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep
(AbstractBuild.java:360)
        at hudson.model.Build$RunnerImpl.post2(Build.java:183)
        at hudson.model.AbstractBuild$AbstractRunner.post
(AbstractBuild.java:345)
        at hudson.model.Run.run(Run.java:916)
        at hudson.model.Build.run(Build.java:112)
        at hudson.model.ResourceController.execute
(ResourceController.java:93)
        at hudson.model.Executor.run(Executor.java:119)

Original issue reported on code.google.com by assmaste...@gmail.com on 28 Jan 2010 at 4:24

GoogleCodeExporter commented 9 years ago
We don't actually support the Hudson plugin I'm afraid :( You'll need to 
contact the
author, Philippe Miossec. (You might find him lurking on one of the Gallio 
mailing
lists). Sorry.

Original comment by grahamr...@gmail.com on 21 Feb 2010 at 7:19

GoogleCodeExporter commented 9 years ago
Tried this one? http://code.google.com/p/mb-unit/issues/detail?id=399

Original comment by straufl@gmail.com on 19 May 2010 at 1:09

GoogleCodeExporter commented 9 years ago
We are using Gallio with Jenkins (Hudson has recently been renamed) with zero 
problems.

The jenkins xsl is not perfect - we are using the TestLog quite heavily, and we 
do not allways get the expected details in the Jenkins output.

We therefore create both xml and html
Gallio.Echo.exe" /report-type:xml YourTestAssembly.dll /rnf:NightlyTests 

After the test has executed, we use Gallio.Utility to create readable html:
Gallio.Utility.exe FormatReport /rt:html NightlyTests.xml

The final trick is to make the build fail when tests are failing - this is 
simply accomplished in Jenkins by reading the error level after Gallio.Echo, 
then using the Exit /B:

So our Jenkins/Hudson test task is a Windows batch command like this:
Gallio.Echo.exe /report-type:xml OurTestAssembly.dll /rnf:NightlyTests 
/filter:"exclude Category:WeeklyTest"
SET ERR1=%ERRORLEVEL%

rem Convert reports to html 
Gallio.Utility.exe FormatReport /rt:html NightlyTests.xml

EXIT /B %ERR1%

(BTW: We are using Jenkins 1.404 with Gallio Echo - Version 3.2 build 744)

Original comment by espen.al...@gmail.com on 13 Apr 2011 at 9:02