2020-06-13 14:06:35 +08:00
|
|
|
## How to execute tests
|
|
|
|
|
2022-04-08 23:52:26 +08:00
|
|
|
[vim-themis](https://github.com/thinca/vim-themis) is required.
|
2020-06-13 14:06:35 +08:00
|
|
|
|
2022-04-08 23:52:26 +08:00
|
|
|
For example, the following clones it locally in clever-f.vim repository.
|
2020-06-13 14:06:35 +08:00
|
|
|
|
|
|
|
```console
|
|
|
|
$ cd /path/to/clever-f.vim/test
|
|
|
|
$ git clone https://github.com/thinca/vim-themis
|
|
|
|
$ ./vim-themis/bin/themis .
|
|
|
|
```
|
|
|
|
|
|
|
|
## How to measure code coverage
|
|
|
|
|
2022-04-08 23:52:26 +08:00
|
|
|
[covimerage](https://github.com/Vimjas/covimerage) is required. I recommend to use
|
|
|
|
[venv](https://docs.python.org/3/library/venv.html) for installing it locally.
|
2020-06-13 14:06:35 +08:00
|
|
|
|
|
|
|
```console
|
2022-04-08 23:52:26 +08:00
|
|
|
$ python -m venv venv
|
|
|
|
$ source ./venv/bin/activate
|
|
|
|
|
2020-06-13 14:06:35 +08:00
|
|
|
$ 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
|
|
|
|
|
2022-04-08 23:52:26 +08:00
|
|
|
CI runs on Linux, macOS and Windows using GitHub Actions: https://github.com/rhysd/clever-f.vim/actions?query=workflow%3ACI
|
2020-06-13 14:06:35 +08:00
|
|
|
|
|
|
|
Coverage is tracked with codecov.io: https://codecov.io/gh/rhysd/clever-f.vim
|