Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-74937

We should allow people to generate code coverage report for special classes

    Details

      Description

      For developers local code coverage for special classes usage:

      For unit test(including portal unit, module unit and portal-impl integration), just add -Djunit.code.coverage=true to your test command.

      Once you finish all your tests, to generate the report, run "ant generate-code-coverage-report -Dclass.names = ${ClassName1},${ClassName2},${ClassName3}"  from project root. The report will be dumped at ${project.dir}/jacoco/html-report.

       

      For example:

      1>Finish some tests, such as EhcachePortalCacheTest,  FileImplTest 

      2>run "ant generate-code-coverage-report -Dclass.names=EhcachePortalCache,FileImpl" from project root

       These reports for EhcachePortalCache and FileImpl will be dumped at ${project.dir}/jacoco/html-report.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jason.pince Jason Pince
              Reporter:
              lily.chi Lily Chi
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.0.0 DXP FP33
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  Master