A plug-in to measure code coverage in RiveScript with python
Project description
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
Use pip to install:
$ pip install rivescript_coverage_plugin
Create or edit your .coveragerc file and add this:
[run] plugins = rivescript_coverage_plugin
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
1.0.0 (2020-02-28)
Add syntax highlighting, fixup some documentation issues, and fix issues #9-#14.
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
Built Distributions
File details
Details for the file rivescript_coverage_plugin-1.0.0.tar.gz
.
File metadata
- Download URL: rivescript_coverage_plugin-1.0.0.tar.gz
- Upload date:
- Size: 22.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 666e4e5ca34999ecf9fcfaca884ad210196039575cefc9ca503535cfb562b888 |
|
MD5 | a85a9d1d40e1d6635e4947d84ce073e9 |
|
BLAKE2b-256 | ff22618c89c3f5e575068a37394a6ab1f313b9d77e2edec8fc2d3615bc3e000e |
File details
Details for the file rivescript_coverage_plugin-1.0.0-py3.7.egg
.
File metadata
- Download URL: rivescript_coverage_plugin-1.0.0-py3.7.egg
- Upload date:
- Size: 18.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1a47deb03889837458e7266986000375af61cee794cb39e716a43f1c685ba17 |
|
MD5 | 631ba753cac5d00198db5d1413abe720 |
|
BLAKE2b-256 | 79352b6ea079f7459a81669aa1f9e2316febefe0ab60756d363aa26c5d1a59d5 |
File details
Details for the file rivescript_coverage_plugin-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: rivescript_coverage_plugin-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 19.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbced976c6a0bab71b90fae7a6f50d7e823b850aec2e3df1dc380c6aab9453a9 |
|
MD5 | 74487b0c381c270d0d29c315d66454cb |
|
BLAKE2b-256 | 289b6493544e733a2fd6028e44b0efd74072f912604c7fefbd43e4ce9bbaae75 |