Skip to content

Commit 5291248

Browse files
committed
ci(js-app): ability to run all tests
webserver + ui5 tooling
1 parent c67f2a1 commit 5291248

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

examples/ui5-js-app/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
"scripts": {
77
"test:webserver": "wdio run wdio-webserver.conf.js",
88
"test:ui5tooling": "wdio run wdio-ui5tooling.conf.js",
9-
"test:lateInject": "wdio run wdio-ui5-late.conf.js"
9+
"test:lateInject": "wdio run wdio-ui5-late.conf.js",
10+
"test": "run-s test:*",
11+
"serve": "ui5 serve"
1012
},
1113
"author": "",
1214
"license": "ISC",
1315
"devDependencies": {
16+
"@ui5/cli": "^2.14.6",
1417
"@wdio/cli": "^7.16.15",
1518
"@wdio/local-runner": "^7.16.15",
1619
"@wdio/mocha-framework": "^7.16.15",

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
"build:watch": "tsc -w",
1717
"// test time": "refers to testing wdio-ui5-service",
1818
"_startApp:js": "soerver -d ./examples/ui5-js-app/webapp -p 8888 -x ./examples/ui5-js-app/webapp/proxyrc.json",
19+
"_startApp:js-tooling": "npm run serve --workspace=examples/ui5-js-app",
1920
"_startApp:ts": "tbd",
20-
"_test:js-app": "wait-on tcp:8888 && npm run test --workspace=examples/ui5-js-app",
21-
"test:js-app": "run-p _startApp:js _test:js-app"
21+
"_test:js-app": "wait-on tcp:8888 && wait-on tcp:8080 && npm run test --workspace=examples/ui5-js-app",
22+
"test:js-app": "run-p -r _startApp:js _startApp:js-tooling _test:js-app"
2223
},
2324
"author": "j&s-soft GmbH <[email protected]> (https://www.js-soft.com)",
2425
"contributors": [

0 commit comments

Comments
 (0)