Closed krasimir closed 9 years ago
Looks like its similar to #167. Do you have a mocha-phantomjs.opts
file in one folder vs. another? What about TestRunner.html
vs. ./TestRunner.html
?
Hello,
a) Nope, I don't have mocha-phantomjs.opts
file.
b) I tried both TestRunner.html
and ./TestRunner.html
. The result is the same.
Are you able to reproduce the problem. Maybe it is something with my local setup.
I'm having the same issue. Running mocha-phantomjs 3.5.3, phantomjs 1.9.8, and I have no mocha-phantomjs.opts
file.
What if you invoke phantom directly?
phantomjs your/path/to/lib/mocha-phantomjs.coffee TestRunner.html
@nathanboktae--it renders the same error :(
Yeah I don't have enough information to help you. A publicly available reproduction of this issue would be appreciated.
Here we go, failing in this repo:
https://github.com/callumacrae/whtevr https://travis-ci.org/callumacrae/whtevr
Failing both locally and on Travis.
@nathanboktae Are you able to replicate? I'm getting the same error on another repo.
I think my issue was caused by calling mocha.run()
when I wanted to call mochaPhantomJS.run()
.
https://github.com/callumacrae/whtevr/commit/0370bf6c14346b437075a319e203edc17b5befe2
Closing as a dupe of #167
My
TestRunner.html
is placed in atests
folder. If I callmocha-phantomjs tests/TestRunner.html
everything is fine. However, if I go to thetests
folder and runmocha-phantomjs ./TestRunner.html
I got