1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 06:50:04 +08:00
SpaceVim/bundle/clever-f.vim/test
2022-04-08 23:52:26 +08:00
..
.coveragerc Add bundle dir (#3542) 2020-06-13 14:06:35 +08:00
.themisrc Add bundle dir (#3542) 2020-06-13 14:06:35 +08:00
README.md chore(bundle): update bundle clever-f 2022-04-08 23:52:26 +08:00
test.vimspec chore(bundle): update bundle clever-f 2022-04-08 23:52:26 +08:00

How to execute tests

vim-themis is required.

For example, the following clones it locally in clever-f.vim repository.

$ cd /path/to/clever-f.vim/test
$ git clone https://github.com/thinca/vim-themis
$ ./vim-themis/bin/themis .

How to measure code coverage

covimerage is required. I recommend to use venv for installing it locally.

$ python -m venv venv
$ source ./venv/bin/activate

$ pip install covimerage
$ cd /path/to/clever-f.vim/test

# Run tests with profiling
$ PROFILE_LOG=profile.txt ./vim-themis/bin/themis .

# Create a coverage file using profile results
$ covimerage write_coverage profile.txt

# See the coverage results in console output
$ coverage report

# See the coverage results in test/htmlcov/index.html
$ coverage html

CI

CI runs on Linux, macOS and Windows using GitHub Actions: https://github.com/rhysd/clever-f.vim/actions?query=workflow%3ACI

Coverage is tracked with codecov.io: https://codecov.io/gh/rhysd/clever-f.vim