You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Rosa Tse (JIRA)" <ji...@apache.org> on 2013/02/25 16:08:14 UTC

[jira] [Created] (CB-2538) Unable to run test with "npm test"

Rosa Tse created CB-2538:
----------------------------

             Summary: Unable to run test with "npm test"
                 Key: CB-2538
                 URL: https://issues.apache.org/jira/browse/CB-2538
             Project: Apache Cordova
          Issue Type: Bug
          Components: CLI
         Environment: Mac OS X 10.7.5
            Reporter: Rosa Tse
            Assignee: Filip Maj
            Priority: Minor


According to the ReadMe, developers should be able to run unit tests by doing "npm test". This is the error I get:

 npm test

> cordova@2.4.9 test /Users/rtse/bb10/git-rim/cordova-cli
> ./node_modules/jasmine-node/bin/jasmine-node --color spec

Error: ENOENT, no such file or directory '/Users/rtse/bb10/git-rim/cordova-cli/spec/fixtures/projects/cordova/www/config.xml'
    at Object.fs.openSync (fs.js:338:18)
    at Object.fs.readFileSync (fs.js:182:15)
    at Object.<anonymous> (/Users/rtse/bb10/git-rim/cordova-cli/spec/metadata/android_parser.spec.js:34:30)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.jasmine.executeSpecsInFolder (/Users/rtse/bb10/git-rim/cordova-cli/node_modules/jasmine-node/lib/jasmine-node/index.js:127:7)
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira