Add Docker setup for testing

This commit is contained in:
Ernst Widerberg 2021-11-20 13:05:56 +01:00
parent 186645a0aa
commit 5b8a833fe9
4 changed files with 58 additions and 22 deletions

View file

@ -41,6 +41,9 @@ See [`:help secret-highlight`](./doc/secret.txt#L74) for more info.
## Testing
`make` can be used to do testing in an isolated environment. The default target runs `test/*.vader` in Vim and Neovim.
Docker can be used to run tests in an isolated environment:
Thanks to [vim-sneak](https://github.com/justinmk/vim-sneak) for this idea.
```
$ docker build -t vim-secret .
$ docker run --rm vim-secret [--verbose]
```