Overhaul ansible-test sanity implementation. (#22177)

- Tests are run to completion instead of stopping on first failure.
- Test results are now parsed instead of passing through to the console.
- Test results can be saved in junit xml format.
- Test results will show up on the Shippable "Tests" result tab.
- Added an experimental --lint option for easier integration with other tools.
- Code smell tests are now usable with the --list-tests, --test and --skip-test options.
- Code split out from executor.py into sanity.py.
- Rename download-logs to download.py and add support for test and coverage results.
- Miscellaneous improvements.
This commit is contained in:
Matt Clay
2017-03-02 12:36:46 -08:00
committed by GitHub
parent 237411613d
commit d66ce40ecb
9 changed files with 1070 additions and 459 deletions

View File

@@ -30,11 +30,11 @@ function cleanup
{
if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | grep -q .; then
ansible-test coverage xml --color -v --requirements
cp -av test/results/reports/coverage.xml shippable/codecoverage/coverage.xml
cp -a test/results/reports/coverage.xml shippable/codecoverage/coverage.xml
fi
rmdir shippable/testresults/
cp -av test/results/junit/ shippable/testresults/
cp -a test/results/junit/ shippable/testresults/
}
trap cleanup EXIT