junegunn / vader.vim

A simple Vimscript test framework
589 stars 40 forks source link

[feature request] Support command to load given file #71

Open lervag opened 8 years ago

lervag commented 8 years ago

How about adding a Given: filename. That is, instead of writing the actual file contents in the vader file, one could import or load a desired file.

For me, this would make it easy to write e.g. a large test.tex file that I could use for many separate vader test files. An added convenience is that I can open the test file test.tex and manually do testing to find what is the real expected result.

junegunn commented 8 years ago

I like the idea. Here is a quick POC patch that seems to work.

https://gist.github.com/junegunn/bcc10c7505b387b7338fcf9db8eb1f43

Needs polishing, test, documentation, etc but these day I don't have much time to work on Vim plugins, so please let me know if you want to take it over and finish it.

lervag commented 8 years ago

I'll consider it. I also don't have that much time these days (hardly keeping the issue count at bay for vimtex). A baby and a toddler takes a lot of time, I've found... :)

junegunn commented 8 years ago

:)

Alright, I'll continue the work in a few days when I get some time.