Permalink
Browse files

Add MakeGreenAllTests function to run all tests.

Also moves the run logic to s:RunMakeGreen and calls that from both
MakeGreen and MakeGreenAllTests.
  • Loading branch information...
1 parent eb04971 commit 98203f30777a283f3149fedd7e1b40c57db8b4c2 Kai Blin committed Dec 14, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 plugin/makegreen.vim
View
@@ -28,8 +28,16 @@ function MakeGreen(...) "{{{1
let make_args = '%'
endif
+ call s:RunMakeGreen(make_args)
+endfunction
+
+function MakeGreenAllTests()
+ call s:RunMakeGreen('')
+endfunction
+
+function s:RunMakeGreen(make_args)
silent! w " TODO: configuration option?
- silent! exec "make " . make_args
+ silent! exec "make " . a:make_args
redraw!

0 comments on commit 98203f3

Please sign in to comment.