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
79.22K
hector
60.43K
Related Tags
#web
#ci
#testing
#automate
#functional
#integration
#phantomjs
#mocha
#javascript
#applications
#unit
#continuous
Filed Under
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#