JBehave
  1. JBehave
  2. JBEHAVE-715

Story reports not being published via Hudson Plugin

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.5.4
    • Fix Version/s: None
    • Component/s: Hudson Support
    • Labels:
    • Environment:
      Windows 7 64bit
    • Number of attachments :
      1

      Description

      When the jBehave/xUnit plugin kicks in after our stories have executed, it fails to copy the reports with the following error:

      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing JBehave-3.x
      [xUnit] [INFO] - [JBehave-3.x] - 3 test report file(s) were found with the pattern '*/jbehave/.xml' relative to 'C:\bin\hudson\hudson_home\jobs\ConvergencePilotIntegrationTests\workspace' for the testing framework 'JBehave-3.x'.
      [xUnit] [ERROR] - The result file 'C:\bin\hudson\hudson_home\jobs\ConvergencePilotIntegrationTests\workspace\ConvergencePlayerManagementIntegrationTests\target\jbehave\BeforeStories.xml' for the metric 'JBehave' is empty. The result file has been skipped.
      [xUnit] [WARNING] - All test reports are empty.
      [xUnit] [INFO] - Check 'Failed Tests' threshold.
      [xUnit] [INFO] - Check 'Skipped Tests' threshold.
      [xUnit] [INFO] - Setting the build status to SUCCESS
      [xUnit] [INFO] - Stopping recording.

      I have confirmed that all xml files are indeed generated (see attached).

        Activity

        Hide
        Alexander Lehmann added a comment - - edited

        Works for me on an example project (all 3 files are non-empty)

        The BeforeStories.xml file in your project is empty, maybe that causes a problem (there was an issue about that before JBEHAVE-585).

        An empty file is not a valid xml file, maybe this breaks the plugin somehow.

        the other issue gives a simple fix for the problem, just delete the empty files (the actual problem is not resolved though)

        Show
        Alexander Lehmann added a comment - - edited Works for me on an example project (all 3 files are non-empty) The BeforeStories.xml file in your project is empty, maybe that causes a problem (there was an issue about that before JBEHAVE-585 ). An empty file is not a valid xml file, maybe this breaks the plugin somehow. the other issue gives a simple fix for the problem, just delete the empty files (the actual problem is not resolved though)

          People

          • Assignee:
            Unassigned
            Reporter:
            Craig Tataryn
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: