Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible-coverage-callback-1.0.2.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file ansible-coverage-callback-1.0.2.tar.gz.

File metadata

File hashes

Hashes for ansible-coverage-callback-1.0.2.tar.gz
Algorithm Hash digest
SHA256 02cd45976b1e44b0d7d8a9facb2ee457d655e91385e80c43c8b4270c23c84989
MD5 1d49607b28152f92d6f38dba48b4a201
BLAKE2b-256 e83c634ee5fa611821b0967e5bbe623dff615f04e6c64a67555ef21b00d886cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page