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.28K
hector
60.51K
Related Tags
#web
#ci
#testing
#automate
#functional
#integration
#phantomjs
#mocha
#javascript
#applications
#unit
#continuous
Filed Under
Did you know?
The website is part of the attack surface, not only the API behind it. Every script, iframe, and tag on a public page is code that did not go through the same review as the backend.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#