UNPKG

6.01 kBJSONView Raw
1{
2 "name": "ui5-test-runner",
3 "version": "4.1.0",
4 "description": "Standalone test runner for UI5",
5 "main": "index.js",
6 "bin": {
7 "ui5-test-runner": "./index.js"
8 },
9 "engines": {
10 "node": ">=18"
11 },
12 "scripts": {
13 "lint": "standard --fix",
14 "test": "npm run test:unit && npm run test:browsers && npm run test:samples",
15 "test:browsers": "npm run test:integration:jsdom && npm run test:integration:puppeteer && npm run test:integration:selenium-webdriver-chrome && npm run test:integration:playwright",
16 "test:samples": "npm run test:samples:js && npm run test:samples:ts && npm run test:auth-sample",
17 "test:samples:js": "npm run test:sample:js:legacy && npm run test:sample:js:coverage:legacy && npm run test:sample:js:legacy-remote && npm run test:sample:js:coverage:legacy-remote && npm run test:sample:js:remote && npm run test:sample:js:coverage:remote",
18 "test:samples:ts": "npm run test:sample:ts:remote && npm run test:sample:ts:coverage:remote",
19 "test:auth-sample": "npm run test:auth-sample:remote",
20 "test:coverall": "rimraf .nyc_output && jest --coverageDirectory .nyc_output --coverageReporters json && nyc --silent --no-clean npm run test:integration:jsdom && nyc --silent --no-clean npm run test:integration:puppeteer && nyc --silent --no-clean npm run test:integration:selenium-webdriver-chrome && nyc --silent --no-clean npm run test:integration:playwright && nyc merge .nyc_output .nyc_output/final/coverage.json && nyc report --temp-dir .nyc_output/final/ --report-dir coverage --branches 80 --functions 80 --lines 80 --statements 80",
21 "test:unit": "jest",
22 "test:unit:debug": "jest --runInBand",
23 "test:integration:puppeteer": "node . --capabilities --browser $/puppeteer.js",
24 "test:integration:selenium-webdriver-chrome": "node . --capabilities --browser $/selenium-webdriver.js -- --browser chrome",
25 "test:integration:jsdom": "node . --capabilities --browser $/jsdom.js",
26 "test:integration:playwright": "node . --capabilities --browser $/playwright.js",
27 "test:report": "node ./src/defaults/report.js ./test/report && reserve --config ./test/report/reserve.json",
28 "test:text-report": "node ./src/defaults/text-report.js ./test/report",
29 "test:sample:js:legacy": "node . --cwd ./test/sample.js",
30 "test:sample:js:coverage:legacy": "node . --cwd ./test/sample.js --coverage --coverage-settings nyc.json --coverage-check-statements 67",
31 "test:sample:js:legacy-remote": "node . --port 8081 --cwd ./test/sample.js --url http://localhost:8081/test/testsuite.qunit.html",
32 "test:sample:js:coverage:legacy-remote": "node . --port 8081 --cwd ./test/sample.js --url http://localhost:8081/test/testsuite.qunit.html --coverage --coverage-settings nyc.json --coverage-check-statements 67",
33 "test:sample:js:remote": "start-server-and-test 'npm run serve:sample:js' http://localhost:8080 'node . --url http://localhost:8080/test/testsuite.qunit.html'",
34 "test:sample:js:coverage:remote": "start-server-and-test 'npm run serve:sample:js' http://localhost:8080 'node . --url http://localhost:8080/test/testsuite.qunit.html --coverage --coverage-check-statements 67'",
35 "serve:sample:js": "ui5 serve --config ./test/sample.js/ui5.yaml",
36 "test:sample:ts:remote": "start-server-and-test 'npm run serve:sample:ts' http://localhost:8080 'node . --url http://localhost:8080/test/testsuite.qunit.html'",
37 "serve:sample:ts": "cd ./test/sample.ts && node ui5.cjs serve",
38 "test:sample:ts:coverage:remote": "start-server-and-test 'npm run serve:sample:ts:coverage' http://localhost:8080 'node . --url http://localhost:8080/test/testsuite.qunit.html --coverage --coverage-check-statements 67'",
39 "serve:sample:ts:coverage": "cd ./test/sample.ts && node ui5.cjs serve --config ui5-coverage.yaml",
40 "test:auth-sample:remote": "start-server-and-test 'npm run serve:auth-sample' http://localhost:8080 'node . --url http://localhost:8080/test/testsuite.qunit.html --browser $/puppeteer.js --browser-args --basic-auth-username testUsername --browser-args --basic-auth-password testPassword'",
41 "serve:auth-sample": "cd ./test/auth_sample.js && reserve --config ./reserve.json",
42 "build:doc": "node build/doc",
43 "clean": "npm uninstall -g ui5-test-runner puppeteer nyc selenium-webdriver playwright webdriverio"
44 },
45 "repository": {
46 "type": "git",
47 "url": "git+https://github.com/ArnaudBuchholz/ui5-test-runner.git"
48 },
49 "keywords": [
50 "REserve",
51 "test",
52 "continuous",
53 "integration",
54 "code",
55 "coverage",
56 "ui5"
57 ],
58 "author": "Arnaud Buchholz",
59 "license": "MIT",
60 "bugs": {
61 "url": "https://github.com/ArnaudBuchholz/ui5-test-runner/issues"
62 },
63 "homepage": "https://github.com/ArnaudBuchholz/ui5-test-runner#readme",
64 "dependencies": {
65 "commander": "^12.0.0",
66 "mime": "^3.0.0",
67 "punybind": "^1.2.1",
68 "punyexpr": "^1.0.4",
69 "reserve": "^1.15.6"
70 },
71 "devDependencies": {
72 "@openui5/types": "^1.120.7",
73 "@ui5/cli": "^3.9.1",
74 "@ui5/middleware-code-coverage": "^1.1.1",
75 "jest": "^29.7.0",
76 "nock": "^13.5.1",
77 "nyc": "^15.1.0",
78 "standard": "^17.1.0",
79 "start-server-and-test": "^2.0.3",
80 "typescript": "^5.3.3",
81 "ui5-tooling-transpile": "^3.3.3"
82 },
83 "optionalDependencies": {
84 "fsevents": "^2.3.3"
85 },
86 "standard": {
87 "env": [
88 "browser",
89 "qunit",
90 "node",
91 "jest"
92 ],
93 "globals": [
94 "sap",
95 "opaTest"
96 ]
97 },
98 "jest": {
99 "testTimeout": 15000,
100 "setupFilesAfterEnv": [
101 "./test/setup.js"
102 ],
103 "testPathIgnorePatterns": [
104 "/node_modules/",
105 "/capabilities/"
106 ],
107 "collectCoverage": true,
108 "collectCoverageFrom": [
109 "src/*.js"
110 ],
111 "coveragePathIgnorePatterns": [
112 "\\.spec\\.js",
113 "output\\.js",
114 "b\\capabilities\\b"
115 ],
116 "coverageThreshold": {
117 "global": {
118 "branches": 80,
119 "functions": 80,
120 "lines": 80,
121 "statements": 80
122 }
123 }
124 }
125}