An Overview of JavaScript Testing in 2018

Vitali Zaidman
Feb 9, 2018 · 22 min read
Image for post
Image for post

TL;DR; Use Jest for unit and integration tests and TestCafe for UI tests.

*********** Important update: ***********

Click here to go to the new version of this guide.


Intro

Image for post
Image for post
Image for post
Image for post

*********** Important update: ***********

Click here to go to the new version of this guide.

Test Types

Test Tools Types

Image for post
Image for post

*********** Important update: ***********

Click here to go to the new version of this guide

Putting it All Together

Unit Tests

Integration Tests

UI Tests

List of General Prominent Testing Tools

jsdom

Istanbul

Karma

Chai

Unexpected

Sinon.JS

testdouble.js

Wallaby

Image for post
Image for post

Cucumber

Choose Your Unit and Integration Tests Framework

mocha

Jest

jasmine

AVA

tape

UI Testing Tools

selenium

Appium

Protractor

WebdriverIO

Nightwatch

TestCafe

Cypress

Puppeteer

PhantomJS

Nightmare

NightmareJS vs PhantomJS code

Casper

CodeceptJS

Conclusion

In the end, the best decisions regarding application architecture today are made by understanding general solution patterns that are developed by the very active community of developers, and combining them with your own experience and by taking in account the characteristics of your application and its special needs.

Image for post
Image for post

Suggested Articles

Best

General

spies and stubs

Testing Frameworks Comparison

Jest

Ava

Tape

UI Tests

TestCafe

Cypress

Welldone Software

The leading full-stack consultancy.

Vitali Zaidman

Written by

https://twitter.com/vzaidman ⎝(•ω•)⎠ https://vzaidman.com

Welldone Software

The leading full-stack consultancy. Creating amazing frontends and rock-solid backends using top notch technologies and practices. Visit us at https://welldone.software.

Vitali Zaidman

Written by

https://twitter.com/vzaidman ⎝(•ω•)⎠ https://vzaidman.com

Welldone Software

The leading full-stack consultancy. Creating amazing frontends and rock-solid backends using top notch technologies and practices. Visit us at https://welldone.software.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store