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

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

    [ https://issues.apache.org/jira/browse/CB-2538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13585999#comment-13585999 ] 

Filip Maj commented on CB-2538:
-------------------------------

What is the output of running {{node bootstrap.js}} from the root of the repo?
                
> 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