Skip to content
This repository has been archived by the owner on Jun 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3 from seankay/master
Browse files Browse the repository at this point in the history
Change 'ExTestRunMethod' to 'ExTestRunTest'
  • Loading branch information
BjRo committed Mar 16, 2016
2 parents d8df045 + fe5648e commit ad98eee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ If you want to bind those commands to your leader keys, you can do so neverthele

```vim
map <leader>T :ExTestRunFile<CR>
map <leader>t :ExTestRunMethod<CR>
map <leader>t :ExTestRunTest<CR>
map <leader>lt :ExTestRunLast<CR>
```

Expand Down
3 changes: 2 additions & 1 deletion plugin/extest.vim
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if !exists("g:extest_exunit_run_file_cmd")
let g:extest_exunit_run_file_cmd = "mix test '%f'"
endif
if !exists("g:extest_exunit_run_test_cmd")
let g:extest_exunit_run_test_cmd = "mix test '%f'"
let g:extest_exunit_run_test_cmd = "mix test '%f:%l'"
endif
if !exists("g:extest_amrita_run_file_cmd")
let g:extest_amrita_run_file_cmd = "mix amrita '%f'"
Expand Down Expand Up @@ -91,6 +91,7 @@ endfunction
let s:framework_identifiers = {}
let s:framework_identifiers['^\s*test\s*"'] = "exunit"
let s:framework_identifiers['^\s*use ExUnit.Case\s*'] = "exunit"
let s:framework_identifiers['^\s*\(should\|with\) \s*"'] = "exunit"
let s:framework_identifiers['^\s*\(it\|fact\|facts\|describe\|context\|specify\) \s*'] = "amrita"
let s:framework_identifiers['^\s*use Amrita.Sweet\s*'] = "amrita"
function s:IdentifyFramework()
Expand Down

0 comments on commit ad98eee

Please sign in to comment.