forked from vim-test/vim-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestify_spec.vim
58 lines (42 loc) · 949 Bytes
/
testify_spec.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
source spec/support/helpers.vim
runtime! plugin/vim-testify
describe "Testify"
before
let g:test#enabled_runners = ['viml#testify']
cd spec/fixtures/testify
end
after
call Teardown()
cd -
end
it "runs nearest tests"
view +3 test/normal.vim
TestNearest
Expect g:test#last_command == ':TestifyNearest'
end
it "runs file tests"
view test/normal.vim
TestFile
Expect g:test#last_command == ':TestifyFile'
end
it "runs test suites"
view test/normal.vim
TestSuite
Expect g:test#last_command == ':TestifySuite'
end
it "detects test folders"
try
view test/normal.vim
TestSuite
Expect g:test#last_command == ':TestifySuite'
!mv test t
TestSuite
Expect g:test#last_command == ':TestifySuite'
!mv t spec
TestSuite
Expect g:test#last_command == ':TestifySuite'
finally
!mv spec test
endtry
end
end