Primula
Primula is a code coverage tool for Vim script.
Installation
$ pip install primula
Requirements
Python 3.11+
coverage 5.0+
Vim 7.4+
Usage
run
$ primula run vim --clean -Nnu vimrc -S /path/to/script.vim -c q
$ primula report -m
The contents of vimrc as follow:
if $PROFILE !=# ''
execute 'profile start' $PROFILE
profile! file ./*
endif
combine
$ vim --clean -Nn --cmd "profile start profile.txt" --cmd "profile! file ./*" -S /path/to/script.vim -c q
$ primula combine profile.txt
$ primula report -m
Configuration
.coveragerc
[primula]
environ = PROFILE
profile = profile.txt
- cond
It controls whether following condition commands to be included as statements.
:elsei[f]
:cat[ch]
:fina[lly]
They are counted by Vim 8.1.309+.
Default: True
- end
It controls whether following end commands to be included as statements.
:en[dif]
:endw[hile]
:endfo[r]
:endt[ry]
:endf[unction]
Default: False
- environ
An environment variable name.
Default: PROFILE
- profile
A profile output path.
Default: profile.txt
License
Primula is distributed under the terms of the Apache License, Version 2.0.
Metadata
Release files for primula 0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| primula-0.8.tar.gz | 28.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| primula-0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.8 kB
Release files / primula-0.8.tar.gz
| Download URL | primula-0.8.tar.gz |
|---|---|
| Size | 28.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93aeea0aa05c114250cb3b87fc128711432589c237c3c7ffb5d051006c82be2e
|
|
BLAKE2b-256 checksum How to use checksums |
963fe931333e490e5b40ddc3058bf0aa63ff3a1c75f02e3407703c35db00e54a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / primula-0.8-py3-none-any.whl
| Download URL | primula-0.8-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7a2a84cae39bed6e70681d14064ab04a067792eaa01e55947ea92d5ea229667
|
|
BLAKE2b-256 checksum How to use checksums |
726bb81a9bee580a1c8b2223d69aec4776ac35ad05dba4d5663d902649e4b357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|