nathanboktae / mocha-phantomjs

:coffee: :ghost: Run client-side mocha tests in the command line through phantomjs
MIT License
954 stars 112 forks source link

--file not working #177

Closed courajs closed 9 years ago

courajs commented 9 years ago

OSX 10.10, bash, mocha-phantomjs 3.5.3, phantomjs 1.9.8, node v0.10.34 running mocha-phantomjs -t 30000 -R xunit --file thing.xml test.html I'm expecting the xunit output to go into thing.xml. Instead it comes to standard out. Additionally, it creates thing.xml, but it is an empty file. Any ideas?

nathanboktae commented 9 years ago

See #161 and #114. just use:

mocha-phantomjs -t 30000 -R xunit test.html > thing.xml
courajs commented 9 years ago

Relevent is that there were resource errors polluting my xml, which is why I moved away from > in the first place. --ignore-resource-errors fixed the problem for me.