36faec1de9
Adds tests for the commands: VimwikiTOC, VimwikiGenerateLinks, VimwikiDiaryGenerateLinks, VimwikiRebuildTags, VimwikiGenerateTags, VimwikiGoto Add syntax tests, key mapping tests and table auto format tests. New helper function in vader setup file. The default wikis setup in the test vimrc are now mapped to the Docker containers test user's home directory. The test user does not have access to write to other locations.
30 lines
781 B
Plaintext
30 lines
781 B
Plaintext
Include: vader_includes/vader_setup.vader
|
|
|
|
|
|
Execute (Copy Wiki's Resources):
|
|
Log "Start: Copy Resources"
|
|
call CopyResources()
|
|
|
|
|
|
Execute (VimwikiGoto buzz_bozz && Assert):
|
|
VimwikiIndex 2
|
|
VimwikiGoto buzz_bozz
|
|
AssertEqual $HOME . '/testmarkdown/buzz_bozz.md', expand('%')
|
|
|
|
Do (VimwikiGoto <CR> buzz_bozz && Assert):
|
|
:VimwikiIndex 2\<CR>
|
|
:VimwikiGoto\<CR>
|
|
buzz_bozz\<CR>
|
|
:AssertEqual $HOME . '/testmarkdown/buzz_bozz.md', expand('%')\<CR>
|
|
|
|
|
|
Execute (:VimwikiGoto + Completion):
|
|
VimwikiIndex 2
|
|
AssertEqual $HOME . '/testmarkdown/index.md', expand('%')
|
|
let s_complete=vimwiki#base#get_globlinks_escaped()
|
|
Assert -1 != stridx(s_complete, 'buzz_bozz')
|
|
|
|
|
|
Include: vader_includes/vader_teardown.vader
|
|
# vim: sw=2 ft=conf foldmethod=indent foldlevel=30 foldignore=
|