Skip to content

Commit 008026e

Browse files
authored
Merge c7fcc06 into 39648b5
2 parents 39648b5 + c7fcc06 commit 008026e

File tree

5 files changed

+24
-252
lines changed

5 files changed

+24
-252
lines changed

cucumber.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
}

docs/dev/02-making-changes.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,17 @@ Here are some tips on how to set up a Karma workspace and how to send a good pul
3434
- Run the tests via:
3535
```bash
3636
$ 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
37+
# or you can run test suits individually
38+
$ npm run test:unit
39+
$ npm run test:e2e
40+
$ npm run test:client
4441
```
4542

4643
- Lint the code via:
4744
```bash
4845
$ npm run lint
46+
# or you can also apply auto-fixes where possible
47+
$ npm run lint:fix
4948
```
5049

5150
- Build the client code via:

gruntfile.js

+1-26
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ module.exports = function (grunt) {
2020
},
2121
test: {
2222
unit: 'mochaTest:unit',
23-
client: 'test/client/karma.conf.js',
24-
e2e: 'cucumberjs:ci'
23+
client: 'test/client/karma.conf.js'
2524
},
2625
watch: {
2726
client: {
@@ -43,30 +42,6 @@ module.exports = function (grunt) {
4342
]
4443
}
4544
},
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-
},
7045
eslint: {
7146
options: {
7247
quiet: true

package-lock.json

-217
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)