Uploaded image for project: 'Kiali QE - archived, use OSSM project'
  1. Kiali QE - archived, use OSSM project
  2. SWSQE-699 Code coverage for kiali - stage 1
  3. SWSQE-701

Get code coverage for system tests

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • Kiali Sprint #23, Kiali Sprint #26

      1. add main go test file which will basically just call main() function to start kiali
      2. compile kiali in "code coverage ready" way: go test -c -covermode=count -coverpkg ./...
      3. use this binary to create kiali docker image
      4. start this docker image with following params: -systemTest
        -test.coverprofile /opt/kiali/console/coverage.cov
      5. run tests
      6. kill kiali in a graceful way (after this step the coverage report should be generated)
      7. get report from docker container

              fbrychta@redhat.com Filip Brychta
              fbrychta@redhat.com Filip Brychta
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: