Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hattya/primula
A code coverage tool for Vim script
https://github.com/hattya/primula
coverage python vim
Last synced: about 1 month ago
JSON representation
A code coverage tool for Vim script
- Host: GitHub
- URL: https://github.com/hattya/primula
- Owner: hattya
- License: apache-2.0
- Created: 2024-03-17T05:14:27.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-04-07T13:13:58.000Z (9 months ago)
- Last Synced: 2024-10-12T18:41:04.716Z (2 months ago)
- Topics: coverage, python, vim
- Language: Python
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
Primula
=======Primula is a code coverage tool for `Vim script`_.
.. image:: https://img.shields.io/pypi/v/primula
:target: https://pypi.org/project/primula.. image:: https://github.com/hattya/primula/actions/workflows/ci.yml/badge.svg
:target: https://github.com/hattya/primula/actions/workflows/ci.yml.. image:: https://ci.appveyor.com/api/projects/status/if338u3j55a8kekm?svg=true
:target: https://ci.appveyor.com/project/hattya/primula.. image:: https://codecov.io/gh/hattya/primula/branch/master/graph/badge.svg
:target: https://codecov.io/gh/hattya/primula.. _Vim script: https://www.vim.org/
Installation
------------.. code:: console
$ pip install primula
Requirements
------------- Python 3.9+
- coverage 5.0+
- Vim 7.4+Usage
-----run
~~~.. code:: console
$ primula run vim --clean -Nnu vimrc -S /path/to/script.vim -c q
$ primula report -mThe contents of ``vimrc`` as follow:
.. code:: vim
if $PROFILE !=# ''
execute 'profile start' $PROFILE
profile! file ./*
endifcombine
~~~~~~~.. code:: console
$ vim --clean -Nn --cmd "profile start profile.txt" --cmd "profile! file ./*" -S /path/to/script.vim -c q
$ primula combine profile.txt
$ primula report -mConfiguration
-------------.coveragerc
~~~~~~~~~~~.. code:: ini
[primula]
environ = PROFILE
profile = profile.txtcond
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.