Need to allow make code coverage on nashorn project

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      Please check, correct if necessary and apply the attached diff (named cc.diff) to allow code coverage. Currently it supports only dynamic instrumentation.
      Also diff contains a fix to allow redefine setting by local properties ${user.home}/.nashorn.project.local.properties (it needs to simplify automation execution of custom machines)
       
      Code coverage is disabled by default
      to enable it redefine in the ${user.home}/.nashorn.project.local.properties
      parameter
      make.code.coverage=true
      and check that jcov2.lib.dir points to correct location (default value is upper directory of nashorn project - jcov2.lib.dir=${basedir}/../jcov2/lib)

      redefine if necessary, like
      jcov2.lib.dir=/opt/jcov2/lib

        1. cc.diff
          8 kB
          Eugene Drobitko

            Assignee:
            Marcus Lagergren
            Reporter:
            Eugene Drobitko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: