-
Notifications
You must be signed in to change notification settings - Fork 409
Expand file tree
/
Copy pathngtest_spec.vim
More file actions
49 lines (35 loc) · 1.05 KB
/
ngtest_spec.vim
File metadata and controls
49 lines (35 loc) · 1.05 KB
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
source spec/support/helpers.vim
describe "Angular ng-test"
before
cd spec/fixtures/angular
end
after
call Teardown()
cd -
end
it "runs nearest tests from top"
view e2e/src/app.e2e-spec.ts
TestNearest
Expect g:test#last_command == "ng test --include='e2e/src/app.e2e-spec.ts'"
end
it "runs nearest tests inside describe block"
view +5 e2e/src/app.e2e-spec.ts
TestNearest
Expect g:test#last_command == "ng test --include='e2e/src/app.e2e-spec.ts' --filter='workspace-project App'"
end
it "runs nearest tests inside it block"
view +11 e2e/src/app.e2e-spec.ts
TestNearest
Expect g:test#last_command == "ng test --include='e2e/src/app.e2e-spec.ts' --filter='workspace-project App should display welcome message'"
end
it "runs file tests"
view e2e/src/app.e2e-spec.ts
TestFile
Expect g:test#last_command == "ng test --include='e2e/src/app.e2e-spec.ts'"
end
it "runs test suites"
view e2e/src/app.e2e-spec.ts
TestSuite
Expect g:test#last_command == 'ng test'
end
end