screwdriver-api 8.0.120 → 8.0.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cucumber.js +43 -0
  2. package/package.json +8 -8
package/cucumber.js ADDED
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ const common = {
4
+ paths: ['features'],
5
+ retry: 2,
6
+ failFast: true,
7
+ forceExit: true,
8
+ format: ['progress'],
9
+ dryRun: true
10
+ };
11
+
12
+ const parallel = {
13
+ ...common,
14
+ parallel: 4
15
+ };
16
+
17
+ module.exports = {
18
+ default: common,
19
+ banner: {
20
+ ...common,
21
+ tags: '(not @ignore) and (not @prod) and @banner'
22
+ },
23
+ prod: {
24
+ ...common,
25
+ tags: '(not @ignore) and @prod'
26
+ },
27
+ beta: {
28
+ ...common,
29
+ tags: '(not @ignore) and (not @prod) and (not @x1) and (not @parallel)'
30
+ },
31
+ 'beta-parallel': {
32
+ ...parallel,
33
+ tags: '(not @ignore) and (not @prod) and (not @x1) and @parallel'
34
+ },
35
+ 'beta-x1-parallel': {
36
+ ...parallel,
37
+ tags: '(not @ignore) and (not @prod) and @x1 and @parallel'
38
+ },
39
+ dev: {
40
+ ...common,
41
+ tags: '(not @ignore) and (not @prod)'
42
+ }
43
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "8.0.120",
3
+ "version": "8.0.122",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,12 +11,12 @@
11
11
  "start": "./bin/server",
12
12
  "debug": "node --nolazy ./bin/server",
13
13
  "profile": "node --prof ./bin/server",
14
- "functional": "cucumber-js --format=progress --tags '(not @ignore) and @prod' --retry 2 --fail-fast --exit",
15
- "functional-banner": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod) and @banner' --fail-fast --exit",
16
- "functional-beta": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod) and (not @x1) and (not @parallel)' --retry 2 --fail-fast --exit",
17
- "functional-beta-parallel": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod) and (not @x1) and @parallel' --retry 2 --fail-fast --exit --parallel 4",
18
- "functional-beta-x1-parallel": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod) and @x1 and @parallel' --retry 2 --fail-fast --exit --parallel 4",
19
- "functional-dev": "cucumber-js --format=progress --tags '(not @ignore) and (not @prod)' --retry 2 --fail-fast --exit",
14
+ "functional": "cucumber-js --profile prod",
15
+ "functional-banner": "cucumber-js --profile banner",
16
+ "functional-beta": "cucumber-js --profile beta",
17
+ "functional-beta-parallel": "cucumber-js --profile beta-parallel",
18
+ "functional-beta-x1-parallel": "cucumber-js --profile beta-x1-parallel",
19
+ "functional-dev": "cucumber-js --profile dev",
20
20
  "create-test-user": "node -e 'require(\"./features/scripts/create-test-user.js\")()'",
21
21
  "diagrams": "find ./design/diagrams -type f -name \\*.puml -print0 | xargs -0 -n 1 -I DIAGRAM puml generate DIAGRAM -o DIAGRAM.png",
22
22
  "semantic-release": "semantic-release pre && npm publish && semantic-release post"
@@ -147,7 +147,7 @@
147
147
  }
148
148
  },
149
149
  "devDependencies": {
150
- "@cucumber/cucumber": "^9.0.0",
150
+ "@cucumber/cucumber": "^12.0.0",
151
151
  "@octokit/rest": "^20.0.2",
152
152
  "chai": "^4.3.7",
153
153
  "chai-as-promised": "^7.1.1",