[
https://issues.jboss.org/browse/SWSQE-700?page=com.atlassian.jira.plugin....
]
Filip Brychta resolved SWSQE-700.
---------------------------------
Resolution: Done
For unit tests it's working out of the box just by running e.g. _go test
-covermode=count -coverprofile=count.out_
For system tests it's more complicated:
# 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)