-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Labels
Description
As mentioned here: https://github.com/Greenstand/treetracker-wallet-app/pull/609/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R157 (In the README.md part), the webdriverio can not watch specific file to re-run the test, inspired by this:
"serve:ui5": "ui5 serve --port 8081 ",
"test": "wdio run ./webapp/test/wdio.conf.js",
"test:watch": "chokidar './webapp/**/*.js' -c 'npm run test'",
"test:watch:ready": "wait-on tcp:8081 & npm run test:watch",
"tdd": "run-p serve:ui5 test:watch:ready"
mauriciolauffer/wdio-qunit-service#42
We can build a CLI/programe to run a watcher and re-run the test, the idea:
- Use chokidar + zx to run watch files and trigger rerun.
- Use zx because it is a better way to manage sub process.
- Note: before re-run test, we need to kill previous process, this is because: when we do
browser.debug(), the process is stopped at the interactive command mode, if we don't kill the current process, we can not run the test correctly.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo