Use Mocha and PhantomJS to automate the testing of web application front-ends
PhantomJS is an headless WebKit.
Mocha is the most common testing framework in the Node.js world.
Mocha and PhantomJS can be used together with continuous integration servers such as Bambo, Travis and Jenkins.
The mocha-phantomjs project provides a file and extensions to drive PhantomJS while testing your HTML pages with Mocha from the console.
check out the sites :
http://phantomjs.org/
http://metaskills.net/mocha-phantomjs/
Written by Frank Rousseau
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Web
Authors

johnbender
77.91K

hector
57.04K
Related Tags
#web
#ci
#testing
#automate
#functional
#integration
#phantomjs
#mocha
#javascript
#applications
#unit
#continuous
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#