File tree 5 files changed +30
-257
lines changed
5 files changed +30
-257
lines changed Original file line number Diff line number Diff line change
1
+ // Shared configuration for Cucumber.js tests.
2
+ // See https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#profiles
3
+ const options = [
4
+ '--format progress' ,
5
+ '--require test/e2e/support/env.js' ,
6
+ '--require test/e2e/support/world.js' ,
7
+ '--require test/e2e/step_definitions/core_steps.js' ,
8
+ '--require test/e2e/step_definitions/hooks.js' ,
9
+ '--tags "not @not-jenkins"'
10
+ ]
11
+
12
+ module . exports = {
13
+ 'default' : options . join ( ' ' )
14
+ }
Original file line number Diff line number Diff line change @@ -23,29 +23,29 @@ Here are some tips on how to set up a Karma workspace and how to send a good pul
23
23
* Install for development. Use a recent npm version, ignore peerdep warnings
24
24
``` bash
25
25
$ npm install
26
- $ rm -rf node_modules/karma
27
- $ cd node_modules
28
- $ ln -s ../ karma
29
- $ cd ../
30
- $ grunt browserify
26
+
27
+ $ npm run init
28
+ # or if you're on Windows
29
+ $ npm run init:windows
30
+
31
+ $ npm run build
31
32
```
32
33
33
34
## Testing and Building
34
35
- Run the tests via:
35
36
``` bash
36
37
$ npm test
37
- # or if you have grunt-cli installed globally you can also
38
- $ grunt test:unit
39
- $ grunt test:e2e
40
- $ grunt test:client
41
-
42
- # All tests.
43
- $ grunt test
38
+ # or you can run test suits individually
39
+ $ npm run test:unit
40
+ $ npm run test:e2e
41
+ $ npm run test:client
44
42
```
45
43
46
44
- Lint the code via:
47
45
``` bash
48
46
$ npm run lint
47
+ # or you can also apply auto-fixes where possible
48
+ $ npm run lint:fix
49
49
```
50
50
51
51
- Build the client code via:
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ module.exports = function (grunt) {
20
20
} ,
21
21
test : {
22
22
unit : 'mochaTest:unit' ,
23
- client : 'test/client/karma.conf.js' ,
24
- e2e : 'cucumberjs:ci'
23
+ client : 'test/client/karma.conf.js'
25
24
} ,
26
25
watch : {
27
26
client : {
@@ -43,30 +42,6 @@ module.exports = function (grunt) {
43
42
]
44
43
}
45
44
} ,
46
- cucumberjs : {
47
- options : {
48
- steps : 'test/e2e/step_definitions' ,
49
- format : 'progress' ,
50
- require : [ 'test/e2e/support/env.js' , 'test/e2e/support/world.js' ]
51
- } ,
52
- all : 'test/e2e/*.feature' ,
53
- current : {
54
- files : {
55
- src : 'test/e2e/*.feature'
56
- } ,
57
- options : {
58
- tags : '@current'
59
- }
60
- } ,
61
- ci : {
62
- files : {
63
- src : 'test/e2e/*.feature'
64
- } ,
65
- options : {
66
- tags : 'not @not-jenkins'
67
- }
68
- }
69
- } ,
70
45
eslint : {
71
46
options : {
72
47
quiet : true
You can’t perform that action at this time.
0 commit comments