I found 2 javascript virtual envirenments: envjs and jsdom, but I was wondering if there aren't others one out there. If so, please share. (and yes I google it before I ask the question)
asked Apr 5, 2011 at 18:34
fabricemarcelin
1,7596 gold badges25 silver badges36 bronze badges
1 Answer 1
PhantomJS is a pretty good option. Its essentially a headless version of Webkit.
answered Apr 5, 2011 at 18:36
Shakakai
3,5742 gold badges18 silver badges18 bronze badges
Sign up to request clarification or add additional context in comments.
2 Comments
sony
envJs is used to simulate the behavior before rendering a webpage. Can PhantomJs be used to simulate such behavior too ?
Shakakai
envjs allows you to run a testsuite of javascript tests from the commandline (outside of a browser) - phantomjs does the same thing except that it replicates the browser environment of Webkit 100% because its using Webkit without a GUI. Both are great projects but I'm a bigger fan of running tests within an actual browser environment (as opposed to a simulated environ like envjs).
lang-js