Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

publish JUnit test result report failing with cucumber and rspec tests #60

Closed
justlanded opened this Issue · 5 comments

3 participants

@justlanded

Hello,
I am using hudson version 2.2.0 and ruby version 1.9.2p290 with your lastest version of ci_reporter. I am running my cucumber and spec tests with the ci:setup:cucumber and ci:setup:rspec respectively. The tests run and the reports are generated.

However when I specify the Publish JUnit test result report and specify the Test report XMLs as features/reports/.xml,spec/reports/xml, Hudson reports the following exception:

Recording test results
ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception
java.lang.NullPointerException
at hudson.tasks.junit.CaseResult.getPackageName(CaseResult.java:266)
at hudson.tasks.junit.TestResult.tally(TestResult.java:499)
at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:115)
at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:87)
at hudson.FilePath.act(FilePath.java:758)
at hudson.FilePath.act(FilePath.java:740)
at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:83)
at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:132)
at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:144)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:630)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:584)
at hudson.model.Build$RunnerImpl.post2(Build.java:159)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:553)
at hudson.model.Run.run(Run.java:1390)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)

Can you please tell me what I need to do to get this working properly.

Best regards,

Rebecca

@nicksieger
Owner

I haven't heard of that error before. Can you navigate through the workspace for the build and see if the xml files did in fact get generated properly? If so, it might be a Hudson issue. Or else there might be content in the report xml files that Hudson does not like. Maybe you can investigate what in the report xml might be causing the problem?

@justlanded
@justlanded
@nicksieger
Owner

Great, thanks for reporting back, and glad you solved the issue.

@nicksieger nicksieger closed this
@kennethkalmer

I think I should be adding this information somewhere, like the README or the wiki... It tripped me up so badly, and I was so stoked when I found this issue. Where would the right place be? I'd be happy to just save others the pain and realize the value of this gem....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.