[jboss-jira] [JBoss JIRA] (SWSQE-701) Get code coverage for system tests
Filip Brychta (Jira)
issues at jboss.org
Fri Apr 5 03:16:05 EDT 2019
[ https://issues.jboss.org/browse/SWSQE-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Brychta updated SWSQE-701:
--------------------------------
Description:
# add main go test file which will basically just call main() function to start kiali
# compile kiali in "code coverage ready" way: go test -c -covermode=count -coverpkg ./...
# use this binary to create kiali docker image
# start this docker image with following params: -systemTest
-test.coverprofile /opt/kiali/console/coverage.cov
# run tests
# kill kiali in a graceful way (after this step the coverage report should be generated)
# get report from docker container
> Get code coverage for system tests
> ----------------------------------
>
> Key: SWSQE-701
> URL: https://issues.jboss.org/browse/SWSQE-701
> Project: Kiali QE
> Issue Type: Sub-task
> Reporter: Filip Brychta
> Assignee: Filip Brychta
> Priority: Major
> Labels: infrastructure
>
> # add main go test file which will basically just call main() function to start kiali
> # compile kiali in "code coverage ready" way: go test -c -covermode=count -coverpkg ./...
> # use this binary to create kiali docker image
> # start this docker image with following params: -systemTest
> -test.coverprofile /opt/kiali/console/coverage.cov
> # run tests
> # kill kiali in a graceful way (after this step the coverage report should be generated)
> # get report from docker container
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list