Book Image

PhantomJS Cookbook

By : Rob Friesel
Book Image

PhantomJS Cookbook

By: Rob Friesel

Overview of this book

Table of Contents (15 chapters)
PhantomJS Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Unit Testing with PhantomJS

In this chapter, we will cover:

  • Running Jasmine unit tests with PhantomJS

  • Using TerminalReporter for unit testing in PhantomJS

  • Creating a Jasmine test runner for PhantomJS and every other browser

  • Running Jasmine unit tests with Grunt

  • Watching your tests during development with Grunt

  • Running Jasmine unit tests with the Karma test runner

  • Generating code coverage reports with Istanbul and the Karma test runner

  • Running Jasmine unit tests with Karma and PhantomJS from WebStorm

  • Running QUnit tests with PhantomJS

  • Running Mocha unit tests with PhantomJS