-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
82 lines (82 loc) · 4.57 KB
/
package.json
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"name": "cypress-cucumber-webpack-example",
"version": "0.1.0",
"private": true,
"dependencies": {
"@slack/web-api": "^6.5.1",
"@types/node": "^17.0.1",
"cypress-cucumber-preprocessor": "^4.3.1",
"cypress-xpath": "^1.6.2",
"through": "^2.3.8"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged --allow-empty"
}
},
"lint-staged": {
"*.{js,ts,json,md}": [
"yarn lint",
"yarn prettier --write",
"yarn tests --watchAll=false --findRelatedTests --bail"
]
},
"scripts": {
"open": "npx cypress open -b chrome",
"clean-results": "rm -rf reports/ && rm -rf cypress/reports/ && rm -rf allure-results",
"merge-report": "npx mochawesome-merge cypress/reports/mocha/*.json > cypress/reports/output.json",
"generate-report": "npx marge cypress/reports/output.json -o reports/html",
"specs": "npx cypress run --record --key d5c4e048-0e4b-4276-a769-591a08e5325a --group 2x-chrome --parallel --ci-build-id test2 --spec \"cypress/integration/features/scenarios/*.feature\" --browser chrome",
"tests": "npx cypress run --spec cypress/integration/features/scenarios/*.feature --browser chrome --env ENV=qa",
"headless": "npx cypress run --spec cypress/integration/features/scenarios/*.feature --browser chrome --headless",
"tags": "npm run clean-results; npx cypress run --spec \"cypress/integration/features/scenarios/*.feature\" --env \"TAGS=@xhr\" --browser chrome; npm run merge-report; npm run generate-report;",
"pretty": "npx prettier --no-config './cypress/**/*.{ts,js}' --write",
"lint": "npx tslint -c tslint.json 'cypress/integration/features/**/**/*.ts'",
"allure-report": "allure generate allure-results --clean -o allure-report && allure open allure-report",
"parallel": "npm run clean-results; npx cypress run --record --key d5c4e048-0e4b-4276-a769-591a08e5325a --parallel --ci-build-id test3 --spec \"cypress/integration/features/scenarios/*.feature\" --browser chrome; npm run merge-report; npm run generate-report;",
"cy:update-snapshots": "cypress run --env updateSnapshots=true",
"cy:run--snapshot-tests-with-reporter": "cypress run --reporter cypress-image-snapshot/reporter --spec \"features/scenarios/*.feature\";",
"cy:run-tests-with-no-failure": "cypress run --env failOnSnapshotDiff=false",
"test:virtualization": "cypress run -b chrome -r mocha-allure-reporter --spec \"features/virtualization/*.feature\";",
"test:helm": "cypress run -b chrome --env TAGS='@regression or @smoke and not @manual' -r mocha-allure-reporter --spec \"features/helm/*.feature\";",
"test:topology": "cypress run -b chrome -r mocha-allure-reporter --spec \"features/topology/*.feature\";",
"test:pipeline": "cypress run -b firefox --env TAGS='@regression or @smoke and not @manual' -r mocha-allure-reporter --spec \"features/pipelines/*.feature\";",
"test:knative": "cypress run -b chrome -r mocha-allure-reporter --spec \"features/knative/*.feature\";",
"test:addFlow": "cypress run -b chrome --env TAGS='@regression or @smoke and not @manual' -r mocha-allure-reporter --spec \"features/scenarios/*.feature\";",
"test": "npm run clean-results; npm run test:addFlow; npm run test:pipeline; npm run test:knative; npm run test:helm; npm run test:topology",
"cypress": "npm run clean-results; cypress run -b chrome --env TAGS='@smoke and not @manual' -r mocha-allure-reporter --spec \"features/*/*.feature\"; npm run merge-report; npm run generate-report",
"copyScreenshots": "cp -r screenshots allure-report/attachments",
"clean:screenshots": "npx cypress/screenshots/*",
"clean:video": "npx rimraf cypress/videos/*",
"prepare": "husky install"
},
"devDependencies": {
"@cypress/webpack-preprocessor": "^5.11.0",
"@types/cypress-cucumber-preprocessor": "^4.0.1",
"allure-commandline": "^2.17.2",
"cypress": "^9.1.1",
"cypress-cucumber-preprocessor": "^4.3.1",
"cypress-multi-reporters": "^1.5.0",
"fs-extra": "^10.0.0",
"glob": "^7.2.0",
"husky": "^7.0.0",
"lint-staged": "^12.1.3",
"mocha": "9.1.3",
"mocha-allure-reporter": "^1.4.0",
"mocha-junit-reporter": "^2.0.2",
"mochawesome": "7.0.1",
"mochawesome-merge": "^4.2.1",
"mochawesome-report-generator": "^6.0.1",
"prettier": "^2.5.1",
"ts-loader": "^6.2.2",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.3.0",
"typescript": "4.5.4",
"webpack": "^4.44.0"
},
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": false,
"step_definitions": "cypress/integration/features/step_definitions/"
}
}