mirror of https://github.com/ansible/ansible.git
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.
17 lines
432 B
Bash
17 lines
432 B
Bash
4 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
2 years ago
|
source ../collection/setup.sh
|
||
4 years ago
|
|
||
2 years ago
|
set -x
|
||
4 years ago
|
|
||
|
# common args for all tests
|
||
|
common=(--venv --color --truncate 0 "${@}")
|
||
|
|
||
|
# run a lightweight test that generates code coverge output
|
||
3 years ago
|
ansible-test sanity --test import "${common[@]}" --coverage
|
||
4 years ago
|
|
||
|
# report on code coverage in all supported formats
|
||
|
ansible-test coverage report "${common[@]}"
|
||
|
ansible-test coverage html "${common[@]}"
|
||
|
ansible-test coverage xml "${common[@]}"
|