From 317429484d701217db934ff7a45a6b8fb8de45d5 Mon Sep 17 00:00:00 2001 From: "Sean K." Date: Sat, 23 Aug 2014 16:08:19 -0400 Subject: [PATCH 1/3] Change 'ExTestRunMethod' to 'ExTestRunTest' --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index aa7be9b..9e364af 100644 --- a/Readme.md +++ b/Readme.md @@ -25,7 +25,7 @@ If you want to bind those commands to your leader keys, you can do so neverthele ```vim map T :ExTestRunFile -map t :ExTestRunMethod +map t :ExTestRunTest map lt :ExTestRunLast ``` From e14d27bc4108dd28f7f5be953e8a7841e60cd64f Mon Sep 17 00:00:00 2001 From: seankay Date: Sun, 30 Nov 2014 15:47:17 -0500 Subject: [PATCH 2/3] Update exunit cmd to run test on line --- plugin/extest.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/extest.vim b/plugin/extest.vim index b860c52..d8e0598 100644 --- a/plugin/extest.vim +++ b/plugin/extest.vim @@ -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'" From fe5648e62695c870d9f7f146f0e82120cdcaacbc Mon Sep 17 00:00:00 2001 From: seankay Date: Fri, 3 Apr 2015 22:25:34 -0400 Subject: [PATCH 3/3] Add ShouldI identifier --- plugin/extest.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/extest.vim b/plugin/extest.vim index d8e0598..5079e55 100644 --- a/plugin/extest.vim +++ b/plugin/extest.vim @@ -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()