kana / vim-vspec

Vim plugin: Testing framework for Vim script
http://www.vim.org/scripts/script.php?script_id=3012
222 stars 13 forks source link

Paths in test scripts depend on current directory #22

Closed glts closed 11 years ago

glts commented 11 years ago

This can be an inconvenience in larger test suites that use

  1. fixtures (e.g. :tabedit fixtures/foo.rb), or
  2. testing utility scripts (e.g. :source util/foo.vim).

In my opinion it would be nice to be able to use relative paths inside the test script, and run bin/vspec on the tests from anywhere. Currently such tests can only be run from a certain directory. (I don't use rake at the moment.)

I am not sure if this is by design. I would be curious to hear your thoughts on this.

glts commented 11 years ago

Ah, sorry, Ruby and Perl do it the same way, and I thought they didn't. My bad.