-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
80 lines (80 loc) · 4.45 KB
/
Copy pathpackage.json
File metadata and controls
80 lines (80 loc) · 4.45 KB
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
{
"name": "cypress-javascript-bdd-framework",
"version": "1.0.0",
"description": "Enterprise-grade Cypress BDD automation framework with Cucumber",
"private": true,
"scripts": {
"test": "cypress run",
"test:dev": "ENV=dev cypress run",
"test:qa": "ENV=qa cypress run",
"test:staging": "ENV=staging cypress run",
"test:chrome": "cypress run --browser chrome",
"test:firefox": "cypress run --browser firefox",
"test:record": "cypress run --record",
"open": "cypress open",
"open:dev": "ENV=dev cypress open",
"open:qa": "ENV=qa cypress open",
"open:staging": "ENV=staging cypress open",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"cypress:run:chrome": "cypress run --browser chrome",
"cypress:run:firefox": "cypress run --browser firefox",
"cypress:run:edge": "cypress run --browser edge",
"cypress:run:headless": "cypress run --headless",
"cypress:run:record": "cypress run --record",
"cypress:run:spec": "cypress run --spec",
"cypress:run:tag": "cypress run --env Tags=",
"ci:lint": "eslint cypress/ config/ && prettier --check 'cypress/**/*.{js,json,feature}' 'config/**/*.js'",
"ci:smoke": "cypress run --env Tags=\"@smoke\" --browser chrome",
"ci:regression": "cypress run --env Tags=\"@regression\" --browser chrome",
"ci:regression:0": "cypress run --env Tags=\"@regression\" --spec 'cypress/e2e/features/login.feature' --browser chrome",
"ci:regression:1": "cypress run --env Tags=\"@regression\" --spec 'cypress/e2e/features/api/**/*.feature' --browser chrome",
"ci:regression:2": "cypress run --env Tags=\"@regression\" --browser chrome",
"ci:all": "cypress run --browser chrome",
"report:allure:generate": "allure generate reports/allure-results --clean -o reports/allure-report",
"report:allure:open": "allure open reports/allure-report",
"report:mochawesome:merge": "mochawesome-merge reports/mochawesome/*.json > reports/mochawesome-report/merged.json",
"report:mochawesome:generate": "marge reports/mochawesome-report/merged.json --reportDir reports/mochawesome-report --inline --charts --cdn true --reportTitle 'Cypress BDD Test Report'",
"report:mochawesome:full": "npm run report:mochawesome:merge && npm run report:mochawesome:generate",
"report:generate": "npm run report:allure:generate && npm run report:mochawesome:full",
"report:open": "npm run report:allure:open",
"report:clean": "rm -rf reports/allure-results/* reports/allure-report/* reports/mochawesome/* reports/mochawesome-report/* reports/cucumber-report/* reports/logs/*",
"clean:reports": "npm run report:clean",
"pretest": "npm run report:clean",
"docker:build": "docker compose build --pull",
"docker:test": "docker compose run --rm cypress npx cypress run --browser chrome",
"docker:test:dev": "ENV=dev docker compose run --rm cypress npx cypress run --browser chrome",
"docker:test:qa": "ENV=qa docker compose run --rm cypress npx cypress run --browser chrome",
"docker:test:staging": "ENV=staging docker compose run --rm cypress npx cypress run --browser chrome",
"docker:smoke": "docker compose run --rm cypress npx cypress run --browser chrome --env Tags=@smoke",
"docker:regression": "docker compose run --rm cypress npx cypress run --browser chrome --env Tags=@regression",
"docker:api": "docker compose run --rm cypress npx cypress run --browser chrome --env Tags=@api",
"docker:bash": "docker compose run --rm --entrypoint /bin/bash cypress",
"lint": "eslint cypress/ config/",
"lint:fix": "eslint cypress/ config/ --fix",
"format": "prettier --write 'cypress/**/*.{js,json,feature}' 'config/**/*.js'",
"format:check": "prettier --check 'cypress/**/*.{js,json,feature}' 'config/**/*.js'",
"precommit": "npm run lint:fix && npm run format"
},
"dependencies": {
"dotenv": "^16.4.7"
},
"cypress-cucumber-preprocessor": {
"stepDefinitions": "cypress/step-definitions/**/*.{js,mjs,ts,tsx}"
},
"devDependencies": {
"@badeball/cypress-cucumber-preprocessor": "^21.0.3",
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.4",
"@shelex/cypress-allure-plugin": "^2.40.2",
"allure-commandline": "^2.32.0",
"cypress": "^13.17.0",
"esbuild": "^0.25.0",
"eslint": "^8.57.1",
"eslint-plugin-cypress": "^3.6.0",
"mochawesome": "^7.1.3",
"mochawesome-merge": "^4.3.0",
"mochawesome-report-generator": "^6.2.0",
"prettier": "^3.4.2",
"prettier-plugin-gherkin": "^4.0.0"
}
}