-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.0.11
-
Component/s: Test Framework
-
Tags:
-
Team:UI
-
Sprint:UI Cooldown - 2022-02
When running WebUI functional tests locally (with npm run ftest:watch – --debug command) occasionally we get the following error:
> @nuxeo/nuxeo-web-ui@3.0.9-SNAPSHOT ftest:watch /Users/samuelfialho/nuxeo/webui/nuxeo-web-ui-3.0.x > node scripts/test-runner.js --nuxeoUrl=http://localhost:8080/nuxeo --url=http://localhost:5000/ --tags='@watch' --debug "--debug" assert.js:339 throw err; ^ AssertionError [ERR_ASSERTION]: rimraf: missing path at Function.rimrafSync [as sync] (/Users/samuelfialho/nuxeo/webui/nuxeo-web-ui-3.0.x/node_modules/fs-extra/lib/remove/rimraf.js:222:3) at removeSync (/Users/samuelfialho/nuxeo/webui/nuxeo-web-ui-3.0.x/node_modules/fs-extra/lib/remove/index.js:16:10) at Object.<anonymous> (/Users/samuelfialho/nuxeo/webui/nuxeo-web-ui-3.0.x/scripts/test-runner.js:27:3) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19)
Apparently, when trying to remove previous reports,
process.env.CUCUMBER_REPORT_PATH is undefined, causing the error.