mariocasciaro / scatter

IoC container and out-of-the-box extensibility for Node.js applications
MIT License
154 stars 14 forks source link

npm test does not start under Windows 7 #15

Closed k7sleeper closed 10 years ago

k7sleeper commented 10 years ago

Executing 'npm test` under Windows 7 leads to the following console output:

D:\dev\GitHub\repositories\scatter>npm test

> scatter@0.6.0 test D:\dev\GitHub\repositories\scatter
> ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha test/*.js --report html -- -R spec

Der Befehl "." ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

I don't know if there is a solution for that at all.

k7sleeper commented 10 years ago

Well, I found a simple solution: add node to the beginning of the test script

> node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha test/*.js --report html --
-R spec
mariocasciaro commented 10 years ago

Ok, looks good to me. If you want you can submit a PR for it.

On Thu, Dec 12, 2013 at 8:59 AM, Klaus Sevensleeper < notifications@github.com> wrote:

Well I found a simple solution: add node to the beginning of the test script

node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha test/*.js --report html -- -R spec

— Reply to this email directly or view it on GitHubhttps://github.com/mariocasciaro/scatter/issues/15#issuecomment-30399612 .