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

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.2.tar.gz (18.9 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.2-py3.7.egg (15.1 kB view details)

Uploaded Egg

rivescript_coverage_plugin-0.2.2-py2.py3-none-any.whl (16.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: rivescript_coverage_plugin-0.2.2.tar.gz
  • Upload date:
  • Size: 18.9 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.2.tar.gz
Algorithm Hash digest
SHA256 4bf529bd785e3d4a4ba0c7f08aa4888b1bc2e3c93af02308f6342a7457304027
MD5 da2a97fdb3c872150eaf930a69b9f25b
BLAKE2b-256 c6a27d85fba2cba5fce53a804dd75b9721b3be541eee4b07eab1dd305ab04da1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rivescript_coverage_plugin-0.2.2-py3.7.egg
  • Upload date:
  • Size: 15.1 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.2-py3.7.egg
Algorithm Hash digest
SHA256 86600b8918429c30a51b618d2804a10cacfef1bf2907b079036a35e8a98fd12f
MD5 1342adade633950d62a9f4f5b2583f2a
BLAKE2b-256 e60fd3bf5e949d5110b685d06be5f6e928c31bf60c9fc958aaf46c15da74c410

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rivescript_coverage_plugin-0.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.5 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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 58a03c72c5390d5c5de45fc407b097cfcc00e2cdc93b7ce8bf09840127106cd3
MD5 199990c32f984ed0584e8e09149ba12b
BLAKE2b-256 a81f98f39d0f491458eee0c2b9bafdb6e4dc770726d638c40a7c3afd9a383db1

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