-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
43 lines (43 loc) · 1.92 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
{
"name": "foncia_cypress_test",
"version": "1.0.0",
"main": "index.js",
"author": "Yassine IBN EL HASSAN",
"license": "MIT",
"scripts": {
"//pretest" : "echo 'It will be run before test and will remove reports, screenshots, videos, and generate .json fixtures'",
"pretest": "yarn run //pretest && rimraf -r ./cypress/reports/* && rimraf -r ./cypress/screenshots/* && rimraf -r ./cypress/videos/* && yarn run convertCSVtoJSON",
"//test" : "echo 'It will run cypress and record the results to the Dashboard'",
"test": "cypress run --record --key 362e78bd-3376-4c7d-98cf-348ccb13211a",
"//posttest" : "echo 'It will be run after test and will merge the mochawesome reports and generate an HTML'",
"posttest": "yarn run //posttest && yarn run merge-reports && yarn run generate-htmlreport",
"//merge-reports" : "echo 'It will merge mochawesome reports'",
"merge-reports": "mochawesome-merge ./cypress/reports/*.json > ./cypress/reports/report1.json",
"//generate-htmlreport" : "echo 'It will generate an HTML report'",
"generate-htmlreport": "marge ./cypress/reports/report1.json --reportDir cypress/reports --inline",
"//convertCSVtoJSON" : "echo 'It will generate the .json fixtures'",
"convertCSVtoJSON": "ts-node testData/convertCSVtoJSON.ts"
},
"dependencies": {
"@badeball/cypress-cucumber-preprocessor": "^11.3.0",
"@cypress/webpack-preprocessor": "^5.12.0",
"@types/papaparse": "^5.3.2",
"@babel/core":"^7.0.1",
"@babel/preset-env":"^7.0.0",
"babel-loader":"^8.0.2",
"webpack":"^4",
"@types/webpack":"^4",
"@types/bluebird":"^3.5.36",
"mocha":"^7",
"@types/node":"^18.0.0",
"cypress": "^10.2.0",
"cypress-xpath": "^2.0.0",
"mochawesome": "^7.1.3",
"mochawesome-merge": "^4.2.1",
"mochawesome-report-generator": "^6.2.0",
"papaparse": "^5.3.2",
"ts-loader": "^8",
"ts-node": "^10.8.1",
"typescript": "^4.7.4"
}
}