grunt-mocha
grunt-mocha copied to clipboard
Viewport Size
Is there any way to set the viewport size for phantom js in the grunt-mocha task?
Thanks.
Kai.
+1 looking for this too
I ended up using mocha-phantomjs:
grunt.initConfig({
mocha_phantomjs: {
all: ['public/test/index.html'],
options: {
reporter: "dot",
view: "1440x900"
}}});
Hey Kai, thanks for the update.
#109 would resolve this. See the https://github.com/bjfletcher/grunt-mocha fork, in the "Screenshotting" section.
This is still desperately needed. We want to run tests with viewportSize, but we don't need screenshots. Going to have to modify the task or use something else entirely.
I'm planning on a big migration to https://github.com/amir20/phantomjs-node which should help with this.
In the mean time, you may wanna reopen this issue to the new home: https://github.com/disqus/grunt-mocha