Debian Codegraph @

test/integration/targets/ansible-test-coverage-windows/runme.sh

raw
1 #!/usr/bin/env bash
2
3 TEST_PATH="${PWD}/test-coverage.py"
4
5 source ../collection/setup.sh
6 cp "${INVENTORY_PATH}" tests/integration/inventory.winrm
7
8 set -x
9
10 # common args for all tests
11 common=(--venv --color --truncate 0 "${@}")
12
13 # run command that generates coverage data for Windows
14 ansible-test windows-integration win_collection "${common[@]}" --coverage
15
16 # report on code coverage in all supported formats
17 ansible-test coverage report "${common[@]}"
18
19 # test we covered the 2 files we expect to have been covered and their lines
20 python "${TEST_PATH}"