-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
stop.feature
62 lines (57 loc) · 1.66 KB
/
stop.feature
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
59
60
61
62
Feature: Stop karma
In order to use Karma
As a person who wants to write great tests
I want to be able to stop Karma.
Scenario: A server can't be stopped if it isn't running
When I stop Karma
Then it fails with like:
"""
ERROR \[stopper\]: There is no server listening on port [0-9]+
"""
Scenario: A server can be stopped
Given a configuration with:
"""
files = ['basic/plus.js', 'basic/test.js'];
browsers = ['ChromeHeadlessNoSandbox'];
plugins = [
'karma-jasmine',
'karma-chrome-launcher'
];
singleRun = false;
"""
When I start a server in background
And I stop Karma
Then The server is dead with exit code 0
Scenario: A server can be stopped and give informative output
Given a configuration with:
"""
files = ['basic/plus.js', 'basic/test.js'];
browsers = ['ChromeHeadlessNoSandbox'];
plugins = [
'karma-jasmine',
'karma-chrome-launcher'
];
singleRun = false;
"""
When I start a server in background
And I stop Karma with log-level info
Then it passes with like:
"""
Server stopped.
"""
Scenario: A server can be stopped programmatically
Given a configuration with:
"""
files = ['basic/plus.js', 'basic/test.js'];
browsers = ['ChromeHeadlessNoSandbox'];
plugins = [
'karma-jasmine',
'karma-chrome-launcher'
];
singleRun = false;
logLevel = 'error';
"""
When I start a server in background
And I stop a server programmatically
Then The server is dead with exit code 0
And The stopper is dead with exit code 0