summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/coverage/combine.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix ansible-test handling of no Python coverage.Matt Clay2020-03-101-2/+5
|
* Fix powershell coverage path rewriting.Matt Clay2020-03-031-1/+3
| | | | This applies the same rewrite logic to PowerShell coverage as is used for Python coverage.
* Add code coverage target analysis to ansible-test. (#67141)Matt Clay2020-02-051-164/+23
| | | | | | | | | | | | | | | | | * Refactor coverage file enumeration. * Relocate sanitize_filename function. * Support sets when writing JSON files. * Generalize setting of info_stderr mode. * Split out coverage path checking. * Split out collection regex logic. * Improve sanitize_filename type hints and docs. * Clean up coverage erase command. * Fix docs and type hints for initialize_coverage. * Update type hints on CoverageConfig. * Split out logic for finding modules. * Split out arc enumeration. * Split out powershell coverage enumeration. * Raise verbosity level of empty coverage warnings. * Add code coverage target analysis to ansible-test.
* Code cleanup and refactoring in ansible-test. (#67063)Matt Clay2020-02-041-6/+8
| | | | | | | | | | | | | | | | | | | | | | | * Code cleanup in ansible-test. * Split out encoding functions. * Consoldate loading of JSON files. * Split out disk IO functions. * Simplify file access. * Add functions for opening files. * Replace open calls with appropriate functions. * Expose more types from typing module. * Support writing compact JSON. * Add verbosity argument to display.warning. * Add changelog entry. * Update files overlooked during rebase. * Use `io.open` instead of `open`. * Fix file opening for imp.load_module. * Remove use of `r+` mode to access files. * Add missing import. * Fix httptester on Python 2.x. * Clarify changelog fragment. * Consolidate imports. Remove extra newlines. * Fix indirect imports.
* Reorganize ansible-test coverage code.Matt Clay2020-01-301-0/+410
This change moves all code for the `ansible-test coverage` command into the `coverage` directory. Each subcommand is split into a separate file. Only minor spelling changes were made aside from code relocation.