Update key bindings for running tests according to the conventions

For ruby and python layers
This commit is contained in:
syl20bnr 2014-12-09 23:40:26 -05:00
parent c1655a02ee
commit c44e3dc58b
3 changed files with 6 additions and 6 deletions

View file

@ -75,17 +75,17 @@ Test commands (start with `m t` or `m T`):
------------------|------------------------------------------------------------
<SPC> m t a | launch all tests of the project
<SPC> m t b | launch all tests of the current buffer (same as module)
<SPC> m t f | launch the current test (function)
<SPC> m t m | launch all tests of the current module
<SPC> m t s | launch all tests of the current suite
<SPC> m t t | launch the current test (function)
Debug | Description
------------------|------------------------------------------------------------
<SPC> m T a | launch all tests of the project in debug mode
<SPC> m T b | launch all tests of the current buffer (module) in debug mode
<SPC> m T f | launch the current test (function) in debug mode
<SPC> m T m | launch all tests of the current module in debug mode
<SPC> m T s | launch all tests of the current suite in debug mode
<SPC> m T t | launch the current test (function) in debug mode
### Other Python commands

View file

@ -30,8 +30,8 @@
"mta" 'nosetests-all
"mTb" 'nosetests-pdb-module
"mtb" 'nosetests-module
"mTf" 'nosetests-pdb-one
"mtf" 'nosetests-one
"mTt" 'nosetests-pdb-one
"mtt" 'nosetests-one
"mTm" 'nosetests-pdb-module
"mtm" 'nosetests-module
"mTs" 'nosetests-pdb-suite

View file

@ -52,5 +52,5 @@ which require an initialization must be listed explicitly in the list.")
(defun ruby/init-ruby-test-mode ()
"Define keybindings for ruby test mode"
(use-package ruby-test-mode
:config (progn (evil-leader/set-key "mtf" 'ruby-test-run)
(evil-leader/set-key "mtp" 'ruby-test-run-at-point))))
:config (progn (evil-leader/set-key "mtb" 'ruby-test-run)
(evil-leader/set-key "mtt" 'ruby-test-run-at-point))))