You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/ansible-test-coverage/runme.sh

17 lines
432 B
Bash

#!/usr/bin/env bash
source ../collection/setup.sh
set -x
# common args for all tests
common=(--venv --color --truncate 0 "${@}")
# run a lightweight test that generates code coverge output
ansible-test sanity --test import "${common[@]}" --coverage
# report on code coverage in all supported formats
ansible-test coverage report "${common[@]}"
ansible-test coverage html "${common[@]}"
ansible-test coverage xml "${common[@]}"