Simplify testing commands using a Makefile

This commit is contained in:
Adriaan Zonnenberg
2018-03-02 18:31:23 +01:00
parent a0cfe6791c
commit 5c3a71983c
5 changed files with 34 additions and 65 deletions

View File

@@ -1,31 +0,0 @@
#!/usr/bin/env bash
set -e
repos=(
'junegunn/vader.vim'
# languages
'cakebaker/scss-syntax.vim'
'digitaltoad/vim-pug'
'groenewege/vim-less'
'kchmck/vim-coffee-script'
'leafgarland/typescript-vim'
'slm-lang/vim-slm'
'wavded/vim-stylus'
# utility
'scrooloose/nerdcommenter'
)
cd "$(dirname "$0")/.."
mkdir -p pack/testing/start
cd pack/testing/start
# Add our plugin to the pack.
ln -s ../../.. vim-vue
for repo in ${repos[@]}
do
git clone https://github.com/$repo.git
done

View File

@@ -1,32 +0,0 @@
# Vader Tests
> Requires Vim 8 or Neovim, due to the way dependencies are installed.
To run the tests, you need to install the dependencies first. Use the
[installation script](install.sh):
```sh
test/install.sh
```
## Running the tests from the command line
You can run the tests with the following command:
```sh
vim -u test/vimrc -c 'Vader! test/*.vader'
```
## Running the tests from within Vim
Open vim with:
```
vim -u test/vimrc
```
Then, you can run the tests with the following command:
```vim
:Vader test/*.vader
```