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

0.2.1 (2020-01-19)

  • Fix Issue #5

0.2.2 (2020-01-19)

  • Fix Issue #6

0.2.3 (2020-02-23)

  • Fix Issue #7, #8

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rivescript_coverage_plugin-0.2.3-py3.7.egg (15.3 kB view details)

Uploaded Egg

rivescript_coverage_plugin-0.2.3-py2.py3-none-any.whl (16.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: rivescript_coverage_plugin-0.2.3.tar.gz
  • Upload date:
  • Size: 19.2 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.3.tar.gz
Algorithm Hash digest
SHA256 716294095aeed087b2f9f99ce7f1ab41d422719739f5c608f84af1b9bdc0bce7
MD5 a8ee1eb515e3975c0d9f9f2fd9a7ad5f
BLAKE2b-256 d9cf64a27ca5b10b36058777fe48aae9ae72a7c927eede82fe0cf460abb01405

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rivescript_coverage_plugin-0.2.3-py3.7.egg
  • Upload date:
  • Size: 15.3 kB
  • Tags: Egg
  • 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.3-py3.7.egg
Algorithm Hash digest
SHA256 a88e18bc4d0860c4a9ed87ee4c215bfdae3c00fd09c25c7a5894e9e59499acf5
MD5 fbd1ace34063e1a7b97fc0c27483e34a
BLAKE2b-256 fc9dc0b1ba3ccd58b42ff1b47a9f789f938ce623575ddf18c63f061238194650

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rivescript_coverage_plugin-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.6 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.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9a9398c748174c341d8f40008cff28c94acb11f73329bb0b222b21a4f02b21d2
MD5 4ca1d08b572c5c981d4af183f84aea16
BLAKE2b-256 e2f680016e182a1b052d96bb01caca1ad8ec84f7c44bd058899380ddf6f8aaac

See more details on using hashes here.

Supported by

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