Coder Social home page Coder Social logo

Comments (5)

shanbin avatar shanbin commented on August 22, 2024

Would you please let me know the build tool / version you use?

It will be greatly helpful if you can share the layout of workspace, like the followings.

repo
|_src
_target/site/scoverage

from scoverage-plugin.

thricejamie avatar thricejamie commented on August 22, 2024

I'm using sbt 0.13.6, sbt-scoverage 1.0.1.

As far as workspace layout, the sbt project root directory is a subdirectory of the repository root. After I run scoverage with sbt, I'm copying the scoverage-report to a different location outside of the sbt target directory so I can generate a non-scoverage-instrumented assembly jar.

So it ends up looking like the following

repository-root-dir
   |_ sbt-project-dir
      |_src
      |_project
      |_target
         ...
      |_scoverage-report

So the scoverage plugin config points to report directory sbt-project-dir/scoverage-report, file scoverage.xml.

from scoverage-plugin.

shanbin avatar shanbin commented on August 22, 2024

Thanks, I guess the reason is scoverage-report is moved outside target directory.

Please try to move it to a 2nd level directory under repo-root-dir, maybe abc/scoverage-report.

I'll also try it out locally and give a fix if applicable.

from scoverage-plugin.

thisismana avatar thisismana commented on August 22, 2024

I'm having the same issue. Running on Cloudbees, the jobs get executed on a different node. I'm using the workflow plugin:

    step([
      $class   : 'ScoveragePublisher',
      reportDir: "target/scala-2.10/scoverage-report",
      reportFile: "scoverage.xml"
    ])

As mentioned above, the link to scoverage report leads to a 404.

As a workaround we manually archive the coverage report to make it accessible through the archives view ${JENKINS_SERVER}/${JOB_NAME}/${BUILD_ID}/artifact/

archive 'target/scala-2.10/scoverage-report/**'

from scoverage-plugin.

shanbin avatar shanbin commented on August 22, 2024

Should be fixed in the latest 1.2.1.

from scoverage-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.