Details

      Description

      For developers local code coverage usage:

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

      For module integration(aka Arquillian test), there are 2 ways.
      a) If you want to start tomcat manually, start it this way: "./catalina.sh jacoco run", then you can just run tests as you normally do
      b) If you want gradle to start the tomcat for you, run the test this way :
      gw testIntegration --tests YourTest -Dapp.server.start.executable.arg.line="jacoco run"

      Once your finish all your tests, shutdown your application server if it is running to dump the test data, to generate the report, run "ant generate-code-coverage-report" from project root. The report will be dumped at ${project.dir}/jacoco/html-report.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              koor.gai Koor Gai
              Reporter:
              tina.tian Tina Tian
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.0.0 DXP FP24
                  7.0.0 DXP FP26
                  7.0.X EE
                  7.0.4 CE GA5
                  Master