Skip to content

Commit c3a3ca1

Browse files
committed
Update JavaUnit command
use JavaUnitExec as default test command rename JavaUnitMavenTest,JavaUnitMavenTestAll
1 parent ed2de87 commit c3a3ca1

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.class
2+
*.html
23
test/*.java

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,32 @@ Plugin 'wsdjeg/JavaUnit.vim'
3232

3333
- command
3434

35-
JavaUnitTest
35+
JavaUnitExec
3636

3737
test the current methond(no need put the cursor on the methodName)
3838
![2015-11-16 23-40-05](https://cloud.githubusercontent.com/assets/13142418/11186276/e153459c-8cbb-11e5-9724-9589066176d0.png)
3939

40-
JavaUnitTest [args ...]
40+
JavaUnitExec [args ...]
4141

4242
test specification method
4343

44-
example JavaUnitTest testMethod1 testMethod2 testMethod3 ...
44+
example JavaUnitExec testMethod1 testMethod2 testMethod3 ...
4545
![2015-11-16 23-40-25](https://cloud.githubusercontent.com/assets/13142418/11186274/e1520d9e-8cbb-11e5-90e1-17e6cfbc5a09.png)
4646

47+
JavaUnitTestMain
48+
49+
run the main methon of current class
50+
4751
also you can use `JavaUnitTestAll`,then will run all the testMethod in the current file
4852
![2015-11-16 23-40-43](https://cloud.githubusercontent.com/assets/13142418/11186273/e132f580-8cbb-11e5-94d3-81dfda614abf.png)
4953

5054
support for maven project
5155

52-
JavaUnitMavenTest test current file
56+
JavaUnitTestMaven test current file
5357

5458
![JavaUnitMavenTest](https://cloud.githubusercontent.com/assets/13142418/11186066/ef8f70aa-8cba-11e5-9869-13f39a782ad7.png)
5559

56-
JavaUnitMavenTestAll test this project
60+
JavaUnitTestMavenAll test this project
5761

5862
![JavaUnitMavenTestAll](https://cloud.githubusercontent.com/assets/13142418/11186033/baf6f64c-8cba-11e5-989c-cd3dacb038b3.png)
5963

plugin/javaunit.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ endif
88
let g:JavaUnit_loaded = 1
99

1010
command! -nargs=*
11-
\ JavaUnitTest
11+
\ JavaUnitExec
1212
\ call javaunit#TestMethod(<q-args>)
1313

1414
command! -nargs=0
15-
\ JavaUnitExec
15+
\ JavaUnitTestMain
1616
\ call javaunit#TestMain()
1717

1818
command! -nargs=0
@@ -32,7 +32,7 @@ command! -nargs=? -complete=file
3232
\ call javaunit#NewTestClass(expand("%:t:r"))
3333

3434
command! -nargs=0
35-
\ JavaUnitCompile
35+
\ JavaUnitServerCompile
3636
\ call javaunit#Compile()
3737

3838
let &cpo = s:save_cpo

0 commit comments

Comments
 (0)