Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Viewport Size #86

Open
kaihowl opened this issue Oct 14, 2013 · 6 comments
Open

Viewport Size #86

kaihowl opened this issue Oct 14, 2013 · 6 comments

Comments

@kaihowl
Copy link

kaihowl commented Oct 14, 2013

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

Thanks.

Kai.

@jakeorr
Copy link

jakeorr commented Jan 24, 2014

+1 looking for this too

@kaihowl
Copy link
Author

kaihowl commented Jan 28, 2014

I ended up using mocha-phantomjs:

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

@jakeorr
Copy link

jakeorr commented Jan 28, 2014

Hey Kai, thanks for the update.

@bjfletcher
Copy link

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

@marcysutton
Copy link

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.

@BYK
Copy link
Collaborator

BYK commented Feb 1, 2017

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

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

5 participants