forked from vim-test/vim-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheunit_spec.vim
46 lines (33 loc) · 812 Bytes
/
eunit_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
source spec/support/helpers.vim
describe "EUnit"
before
cd spec/fixtures/eunit
end
after
call Teardown()
cd -
end
it "runs file tests"
view example_tests.erl
TestFile
Expect g:test#last_command == 'rebar3 eunit --module=example_tests'
end
it "runs file tests instead of nearest tests"
view +8 example_tests.erl
TestNearest
Expect g:test#last_command == 'rebar3 eunit --module=example_tests'
end
it "runs test suites"
view example_tests.erl
TestSuite
Expect g:test#last_command == 'rebar3 eunit'
end
it "ignores files not ending with _tests.erl"
view example_SUITE.erl
TestFile
Expect g:test#last_command !~# 'rebar3 eunit'
view example.erl
TestFile
Expect g:test#last_command !~# 'rebar3 eunit'
end
end