Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

使用 mocha-phantomjs 的版本,spm test 报错 #1319

Open
vvenv opened this issue Jun 1, 2015 · 1 comment
Open

使用 mocha-phantomjs 的版本,spm test 报错 #1319

vvenv opened this issue Jun 1, 2015 · 1 comment

Comments

@vvenv
Copy link

vvenv commented Jun 1, 2015

rt,windows 环境:

'C:\Users\Administrator\AppData\Roaming\npm\node_modules\spm\node_modules\mocha-phantomjs\bin\mocha-phantomjs' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
{ code: 1,
  stderr: '\'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\spm\\node_modules\\mocha-phantomjs\\bin\\mocha-phantomjs\' �����ڲ����ⲿ���Ҳ���ǿ����еij���\r\n���������ļ���\r\n' }

https://github.com/spmjs/spm/blob/master/lib/test.js#L24 做如下修改,运行正常:

var cmds = ['node ' + mochaPhantomBin + ' '+ url + '?cov --hooks ' + hook];

加了个 node 前缀。

@honger05
Copy link

赞!

刚下载的 spm @3.6.11

win10 环境

spm test 报一样的错。

望更新。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants