Javascript Unit Testing Tools

Post on 23-Feb-2017

414 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

Transcript

Why Javascript for Testing?➔ Free

➔ Open Source

➔ Modular

➔ Active & Vibrant community

➔ Client & server in javascript - why not tests?

JavaScript Testing Tools

Jasmine

➔ Most used Javascript testing tool used for Python & ruby too.

➔ Simple to setup

➔ Supported by many CIs(Codeship, Travic, etc)

➔ Descriptive syntax for BDD Testing

For Any Query Contact us

For Any Query Contact us

Quint

QUnit is a powerful JavaScript unit testing framework that helps you to

debug code. It's written by members of the jQuery team, and is the official

test suite for jQuery.

Test any regular JavaScript code, and it's even able to test server-side

JavaScript via some JavaScript engine like Rhino or V8.

For Any Query Contact us

Mocha

➔ Javascript framework running on Node.js & in the browser.

➔ Mocha tests run serially, allowing for flexible and accurate reporting,

while mapping uncaught exceptions to the correct test cases.

➔ Highly extensible

➔ Easy to setup

Run unit tests with Mocha

Result of unit

tests with

Mocha

For Any Query Contact us

Tape➔ Tape is a simple TAP-producing test library for node and browsers.

➔ The tape API is a small superset of the node core assert module.

Here are some key features of Tape :

➔ Cross browser compatibility

➔ CI support

For Any Query Contact us

karma➔ Karma is a tool that enables the running of source code (i.e. JavaScript)

against real browsers via the CLI. The fact that it runs against real browsers

rather than “fakes” with a virtual DOM is extremely powerful. DOM

implementations vary across browsers therefore the idea is to use the actual

browsers for correctness.

AngularJS unit testing with karma

Who we Are?

Pixelcrayons is an award winning Digital Consulting & Engineering Firm

offering end-to-end solutions to Enterprises, Digital Agencies and

Startups.

top related