mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 05:03:04 +00:00
Add: easier to run tests
This commit is contained in:
parent
38db5aa9fb
commit
1774d7cbd0
5
Rakefile
5
Rakefile
@ -9,6 +9,11 @@ end
|
||||
find_version
|
||||
FileUtils.mkdir_p('pkg')
|
||||
|
||||
desc "run tests in batch mode"
|
||||
task :tests do
|
||||
$EMACS=ENV["EMACS"] || "emacs"
|
||||
sh "#{$EMACS} -Q -L . -l yasnippet-tests.el -nw --batch -e yas/ert"
|
||||
end
|
||||
|
||||
desc "convert some textmate bundles to yasnippets"
|
||||
task :convert_bundles do
|
||||
|
@ -455,6 +455,15 @@ TODO: be meaner"
|
||||
|
||||
;;; Helpers
|
||||
;;;
|
||||
(defun yas/ert ()
|
||||
(interactive)
|
||||
(with-temp-buffer
|
||||
(flet ((message (&rest args)
|
||||
(declare (ignore args))
|
||||
nil))
|
||||
(ert t (buffer-name (current-buffer)))
|
||||
(princ (buffer-string)))))
|
||||
|
||||
|
||||
(defun yas-should-expand (keys-and-expansions)
|
||||
(dolist (key-and-expansion keys-and-expansions)
|
||||
|
Loading…
x
Reference in New Issue
Block a user