Simple Ansible Coverage callback
Project description
# ansible-coverage-callback
[![Latest version](https://img.shields.io/pypi/v/ansible-coverage-callback.svg)](https://pypi.python.org/pypi/ansible-coverage-callback/)
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
Coverage Tool for Ansible.
## Requirements
* Ansible >=2.4
## Installation
Install this Ansible plugin with:
```
$ pip install ansible-coverage-callback
```
Be sure to whitelist the plugin in your `ansible.cfg`:
```
[defaults]
callback_whitelist = coverage
```
## Skip coverage tag
You may skip task or tasks from coverage report by adding `skip_coverage` tag:
```
---
- name: Test handler
command: whoami
when:
- test_var == False
tags:
- skip_coverage
```
## Acknowledged issues
* Imported handlers has no tags, so they can't be skipped
* There is some magic hacks for skipping Molecule's system playbooks
* Tasks from non imported files are not counted
[![Latest version](https://img.shields.io/pypi/v/ansible-coverage-callback.svg)](https://pypi.python.org/pypi/ansible-coverage-callback/)
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
Coverage Tool for Ansible.
## Requirements
* Ansible >=2.4
## Installation
Install this Ansible plugin with:
```
$ pip install ansible-coverage-callback
```
Be sure to whitelist the plugin in your `ansible.cfg`:
```
[defaults]
callback_whitelist = coverage
```
## Skip coverage tag
You may skip task or tasks from coverage report by adding `skip_coverage` tag:
```
---
- name: Test handler
command: whoami
when:
- test_var == False
tags:
- skip_coverage
```
## Acknowledged issues
* Imported handlers has no tags, so they can't be skipped
* There is some magic hacks for skipping Molecule's system playbooks
* Tasks from non imported files are not counted
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for ansible-coverage-callback-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1f90469fe05a2ac8c2f5fa71cd5464df7f03309ff97ea68edb69d466f78ea25 |
|
MD5 | 126ea94fa03dc09c9e8fc43b5bf2ab60 |
|
BLAKE2b-256 | 147d5086bcf4518dd4ef1b496e3aa1d6f7804f9a101e72342362cdf92fd5a375 |