summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-test-coverage/runme.sh
blob: de5a4eb2cf847c8cb91bd08f1775bbefd5ebe9f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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[@]}"