javascript unit testing tools

20
Top JavaScript Testing Tools

Upload: pixelcrayons

Post on 23-Feb-2017

431 views

Category:

Technology


0 download

TRANSCRIPT

Page 2: Javascript Unit Testing Tools

Why Javascript for Testing?➔ Free

➔ Open Source

➔ Modular

➔ Active & Vibrant community

➔ Client & server in javascript - why not tests?

Page 3: Javascript Unit Testing Tools
Page 4: Javascript Unit Testing Tools
Page 5: Javascript Unit Testing Tools

JavaScript Testing Tools

Page 6: Javascript Unit 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

Page 7: Javascript Unit Testing Tools
Page 8: Javascript Unit Testing Tools
Page 9: Javascript Unit Testing Tools

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.

Page 10: Javascript Unit Testing Tools
Page 11: Javascript Unit Testing Tools

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

Page 12: Javascript Unit Testing Tools

Run unit tests with Mocha

Page 13: Javascript Unit Testing Tools

Result of unit

tests with

Mocha

Page 14: Javascript Unit Testing Tools

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

Page 15: Javascript Unit Testing Tools
Page 16: Javascript Unit Testing Tools

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.

Page 17: Javascript Unit Testing Tools

AngularJS unit testing with karma

Page 18: Javascript Unit Testing Tools

Who we Are?

Pixelcrayons is an award winning Digital Consulting & Engineering Firm

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

Startups.