raml-org / raml-js-parser-2

(deprecated)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some tests fail on npm run-script testall

postatum opened this issue · comments

Installed the project via

git clone https://github.com/raml-org/raml-js-parser-2.git
cd raml-js-parser-2/
mkdir raml-js-parser-2-proj
npm install
npm run devInstall
npm run buildall

When running npm run-script testall the output says that some tests are failing:

  3954 passing (4m)
  10 pending
  4 failing

  1) Complete TCK Test Set
       raml-1.0/Examples
         test001/api.raml:

      AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  assert(false)

      + expected - actual

      -false
      +true
      
      at doTestAPI (dist/parser/test/scripts/tckUtil.js:519:13)
      at Object.testAPIScript (dist/parser/test/scripts/tckUtil.js:391:12)
      at Context.<anonymous> (dist/parser/test/TCK2.js:1247:21)

  2) Complete TCK Test Set
       raml-1.0/Examples
         test026/api.raml:

      AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  assert(false)

      + expected - actual

      -false
      +true
      
      at doTestAPI (dist/parser/test/scripts/tckUtil.js:519:13)
      at Object.testAPIScript (dist/parser/test/scripts/tckUtil.js:391:12)
      at Context.<anonymous> (dist/parser/test/TCK2.js:1347:21)

  3) Complete TCK Test Set For New JSON Format
       raml-1.0/Examples
         test001/api.raml:

      AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  assert(false)

      + expected - actual

      -false
      +true
      
      at doTestAPI (dist/parser/test/scripts/tckUtil.js:519:13)
      at Object.testAPIScript (dist/parser/test/scripts/tckUtil.js:391:12)
      at Context.<anonymous> (dist/parser/test/TCK2-newFormat.js:1055:21)

  4) Complete TCK Test Set For New JSON Format
       raml-1.0/Examples
         test026/api.raml:

      AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  assert(false)

      + expected - actual

      -false
      +true
      
      at doTestAPI (dist/parser/test/scripts/tckUtil.js:519:13)
      at Object.testAPIScript (dist/parser/test/scripts/tckUtil.js:391:12)
      at Context.<anonymous> (dist/parser/test/TCK2-newFormat.js:1155:21)




    at Promise.all.then.arr (/home/projects/raml-js-parser-2/node_modules/execa/index.js:210:11)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:8569) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:8569) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Command failed: npm run platformTests && gulp test
/home/projects/raml-js-parser-2/node_modules/dev-env-installer/dist/devUtils.js:43
                    throw new Error("Tests failed in " + folder);
                    ^

Error: Tests failed in /home/projects/raml-js-parser-2
    at /home/projects/raml-js-parser-2/node_modules/dev-env-installer/dist/devUtils.js:43:27
    at Array.forEach (<anonymous>)
    at Object.testAll (/home/projects/raml-js-parser-2/node_modules/dev-env-installer/dist/devUtils.js:37:21)
    at Object.<anonymous> (/home/projects/raml-js-parser-2/node_modules/dev-env-installer/dist/cli.js:57:26)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)