Skip to content

Commit

Permalink
vim runs nosetests if it sees Python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Jan 11, 2015
1 parent 9cda229 commit c90d761
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ function! RunTests(filename)
" Fall back to a blocking test run with Bundler
elseif filereadable("Gemfile")
exec ":!bundle exec rspec --color " . a:filename
" If we see python-looking tests, assume they should be run with Nose
elseif strlen(glob("test/**/*.py") . glob("tests/**/*.py"))
exec "!nosetests " . a:filename
" Fall back to a normal blocking test run
else
exec ":!rspec --color " . a:filename
Expand Down

0 comments on commit c90d761

Please sign in to comment.