Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-651

Cucumber reports error when running locally

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.11
    • Component/s: Test Framework

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              sfialho Samuel Fialho
              Reporter:
              sfialho Samuel Fialho
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m