summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPrashanth Chandra <coolshanth94@gmail.com>2016-10-11 10:28:25 +0800
committerPrashanth Chandra <coolshanth94@gmail.com>2016-10-12 18:59:18 +0800
commit210d464442eb16c4450816307b5f52c7c6994913 (patch)
tree24d3cef71b98db8983fe77487474ad41e3ff6a27 /test
parentd8d08de26cb17c9319a08c0c5f611c6778260030 (diff)
downloadale-210d464442eb16c4450816307b5f52c7c6994913.zip
Use vim-testbed to run Vader tests on Travis
Diffstat (limited to 'test')
-rw-r--r--test/example.vader9
-rw-r--r--test/vimrc21
2 files changed, 30 insertions, 0 deletions
diff --git a/test/example.vader b/test/example.vader
new file mode 100644
index 00000000..24aa2f0b
--- /dev/null
+++ b/test/example.vader
@@ -0,0 +1,9 @@
+Given (Hello):
+ Hello
+
+Do (yyp):
+ yyp
+
+Expect (Hello\nHello):
+ Hello
+ Hello
diff --git a/test/vimrc b/test/vimrc
new file mode 100644
index 00000000..043f75b9
--- /dev/null
+++ b/test/vimrc
@@ -0,0 +1,21 @@
+" Load builtin plugins
+" We need this because run_vim.sh sets -i NONE
+set rtp=/home/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,/home/vim/after
+set rtp+=/vader
+
+" The following is just an example
+filetype plugin indent on
+syntax on
+set nocompatible
+set tabstop=4
+set softtabstop=4
+set shiftwidth=4
+set expandtab
+set backspace=2
+set nofoldenable
+set foldmethod=syntax
+set foldlevelstart=10
+set foldnestmax=10
+set ttimeoutlen=0
+
+let mapleader=','