macbre / phantomas

Headless Chromium-based web performance metrics collector and monitoring tool
https://www.npmjs.com/package/phantomas
BSD 2-Clause "Simplified" License
2.26k stars 141 forks source link

Support for running phantomas in SlimerJS #313

Closed macbre closed 10 years ago

macbre commented 10 years ago

PhantomJS 2.0 release is past due by about 1 month and there are quite a lot of bugs still open.

Consider porting phantomas to SlimerJS:

Disadvantages:

@stefanjudis, @william-p, @cvan, @gomezd - let's discuss it :)

macbre commented 10 years ago

NPM package

gomezd commented 10 years ago

Could it be possible to abstract phantomas core so it runs on both? That opens more possibilities for testing in webkit and gecko browsers, similar to what casperjs is doing.

william-p commented 10 years ago

:+1:

macbre commented 10 years ago

@gomezd, as far as skimmed through SlimerJS documentation, that's possible and definitely worth it.

Will command line options like the following be enough?

--engine [gecko|webkit]

alternatively:

--gecko
--webkit
stefanjudis commented 10 years ago

Including both sounds great! :+1:

macbre commented 10 years ago

Guys, thanks for your feedback. Issue title updated accordingly :)

cvan commented 10 years ago

For an old side project of mine, I've gotten SlimerJS working with xvfb on my local machine and a VPS. However, I did have issues using it on Stackato (ActiveState's PAAS like herkou) where the requested frame buffer memory size caused SlimerJS to crash on graphic-intensive web sites.

https://github.com/cvan/firesnaggle/blob/master/install-packages.sh https://github.com/cvan/firesnaggle/blob/master/test-packages.sh

I think we should totally do this, but we should do thorough testing on pages of varying sizes.

macbre commented 10 years ago

@cvan, thanks for the feedback! It will definitely require lots of testing.

macbre commented 10 years ago

SlimerJS playground

macbre commented 10 years ago

Blockers:

TODOs:

macbre commented 10 years ago

SlimerJS support (run via xvfb) added to phantomas as an experimental feature. Core functionality works correctly, expect some glitches in various modules :)