Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33144

behave-testresults-publisher plugin lacks documentation on how to use it

XMLWordPrintable

      There's no information about how this plugin is supposed to work.

      From https://github.com/jenkinsci/behave-testresults-publisher-plugin it says to use behave options --format=json.pretty --outfile=resultsfilenameofyourchoice.json

      I am doing this, and the output file is being kept as a build artifact and looks vaguely correct.

      I configured the job and added post-build step Publish behave results as a report. But I don't see anywhere how to tell the plugin what the name of my json file is. So unsurprisingly this build step fails.

      [BehaveReportPublisher] Compiling Behave Html Reports ...
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      	at net.jenkins.BehaveReportPublisher.perform(BehaveReportPublisher.java:63)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      	at hudson.model.Build$BuildExecution.post2(Build.java:185)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      	at hudson.model.Run.execute(Run.java:1766)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:408)
      Build step 'Publish behave results as a report' marked build as failure
      Finished: FAILURE
      

            chaitanyachannella Chaitanya Channella
            pfctdayelise Brianna Laugher
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: