Closed cweems closed 8 years ago
This is documented in the "gotchas" section of the readme. In Webkit-based browsers, if the test page isn't visible on screen, it's deprioritized and runs very slowly. So you need to make sure some part of the page is visible. The this.timeout()
change isn't necessary if you do that.
@jamesshore Thanks so much! I did indeed have Chrome full screen in one Mac desktop and my terminal full screen on another desktop. Moving them to the same window so that the browser was visible made the tests almost instantaneous.
Glad that fixed it!
When running the example (
quixote/example
) I received the following error:I managed to get passing tests by adding
this.timeout(15000)
in line 17 of _media_css_test.js per this Stack Overflow post. Even so, the example tests are taking about 5 seconds to complete:Chrome 51.0.2704 (Mac OS X 10.11.5): Executed 6 of 6 SUCCESS (5.169 secs / 0.008 secs)
My question: should I add timeouts to all of the tests, or is the lack of speed here symptomatic of something else?
Thanks for your fantastic work on this!