grunt-mocha icon indicating copy to clipboard operation
grunt-mocha copied to clipboard

Viewport Size

Open kaihowl opened this issue 11 years ago • 6 comments

Is there any way to set the viewport size for phantom js in the grunt-mocha task?

Thanks.

Kai.

kaihowl avatar Oct 14 '13 09:10 kaihowl

+1 looking for this too

jakeorr avatar Jan 24 '14 19:01 jakeorr

I ended up using mocha-phantomjs:

grunt.initConfig({
    mocha_phantomjs: {
     all: ['public/test/index.html'],
     options: {
        reporter: "dot",
        view: "1440x900"
      }}});

kaihowl avatar Jan 28 '14 14:01 kaihowl

Hey Kai, thanks for the update.

jakeorr avatar Jan 28 '14 17:01 jakeorr

#109 would resolve this. See the https://github.com/bjfletcher/grunt-mocha fork, in the "Screenshotting" section.

bjfletcher avatar Jan 30 '14 19:01 bjfletcher

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.

marcysutton avatar Feb 01 '17 19:02 marcysutton

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

BYK avatar Feb 01 '17 21:02 BYK