Skip to main content

A plug-in to measure code coverage in RiveScript with python

Project description

https://badge.fury.io/py/rivescript_coverage_plugin.png https://travis-ci.org/snoopyjc/rivescript_coverage_plugin.png?branch=master

A plug-in to measure code coverage in RiveScript with python

Features

The RiveScript Coverage Plugin is a plugin for Coverage.py which extends that package to measure code coverage for RiveScript files. It uses code analysis tools and debug hooks provided by the RiveScript interpreter to determine which lines are executable, and which have been executed. It supports CPython version 3.6 and above and plugs into Coverage.py version 5.0 and above. It requires RiveScript 1.14.9 or above.

Documentation is on Read The Docs. Code repository and issue tracker are on GitHub.

Getting Started

  1. Use pip to install:

    $ pip install rivescript_coverage_plugin
  2. Create or edit your .coveragerc file and add this:

    [run]
    plugins = rivescript_coverage_plugin
  3. Run the coverage command or pytest with the --cov option and your RiveScript files will automatically be included in the coverage analysis and subsequent report generation.

Note that just like with Python coverage, RiveScript files that are not executed at all will not be part of your coverage report. To add them, use the source = . or other more specific source specifier in the [run] section of your .coveragerc file or the --source command line option. See the Coverage Documentation section “Specifying source files” for more information on this.

Documentation

The full documentation is at http://rivescript_coverage_plugin.rtfd.org.

History

0.1.0 (2020-01-16)

  • First release on PyPI.

0.2.0 (2020-01-17)

  • Fix Issues #1-#4

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

rivescript_coverage_plugin-0.2.1.tar.gz (18.4 kB view details)

Uploaded Source

Built Distributions

rivescript_coverage_plugin-0.2.1-py3.7.egg (14.7 kB view details)

Uploaded Source

rivescript_coverage_plugin-0.2.1-py2.py3-none-any.whl (16.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rivescript_coverage_plugin-0.2.1.tar.gz.

File metadata

  • Download URL: rivescript_coverage_plugin-0.2.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for rivescript_coverage_plugin-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cf4bdcd331f5d62603f045f8bba38b65aa9104478823396dfe146cffa5f73677
MD5 74a5918775278f392f5deb0dda3dea54
BLAKE2b-256 afdbcd00f8c0f86567e4bf175aa76e664197f833240b45f92a527a626106c54b

See more details on using hashes here.

File details

Details for the file rivescript_coverage_plugin-0.2.1-py3.7.egg.

File metadata

  • Download URL: rivescript_coverage_plugin-0.2.1-py3.7.egg
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for rivescript_coverage_plugin-0.2.1-py3.7.egg
Algorithm Hash digest
SHA256 ce44f9e992f11a4653176df3d6852ee026578e7f2da156054510c72dc0f43330
MD5 e75a5f2d25701bc9958d9cdb67dc8853
BLAKE2b-256 788eba5c7ffbc832b73e4e789fbe7f8c0318187e4cb2c225f1f7a197467cf3da

See more details on using hashes here.

File details

Details for the file rivescript_coverage_plugin-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: rivescript_coverage_plugin-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for rivescript_coverage_plugin-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 550bd307adf76b31e0f4ca5b6fc8060955a468b4202b3a656b4c430ed0c00a9e
MD5 8decdc0f537d697e6a7cafb854fa6556
BLAKE2b-256 e0ab6755ac58d17ad8aef2cb3e70a626a6615182d219486c0f74503e034de686

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