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.

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.1.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distributions

rivescript_coverage_plugin-0.1.0-py3.7.egg (27.4 kB view details)

Uploaded Source

rivescript_coverage_plugin-0.1.0-py2.py3-none-any.whl (15.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: rivescript_coverage_plugin-0.1.0.tar.gz
  • Upload date:
  • Size: 18.0 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.1.0.tar.gz
Algorithm Hash digest
SHA256 ee2ef4ac29fb6e597f9681a832ed657eb8bd00a4770483bfc24a5dfb04a7dc92
MD5 577d1b161e981381fe735bf0425c317b
BLAKE2b-256 45609b32ed9f35dc32763bb8fde4f7faa9682d8f8987dac7ba6f81b8d35847ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rivescript_coverage_plugin-0.1.0-py3.7.egg
  • Upload date:
  • Size: 27.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.1.0-py3.7.egg
Algorithm Hash digest
SHA256 a856fc0967f8c0db887ae4d7e5d71009716035ad152c3136768bec8c13c3e1c0
MD5 24df7de9931034639b60f34f0ba01129
BLAKE2b-256 3a5b6ca7575052eacecd4066bc4295269b0f7235726f797efb1992883a467089

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rivescript_coverage_plugin-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.8 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.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a441f9f4ba9b937d2aaefb1f925f9c8973c93ff03e4745a8c354311294d47d73
MD5 bbd505b7a684032a3d1b4bfa588fb8d5
BLAKE2b-256 4d3ba7da0ce89540c8c9535926afc5cc19388a6a1e0590cafec8d19ea05502d7

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