Video description
In this JavaScript Unit Testing training course, expert author Mark Ethan Trostler will teach you the theory and practice of JavaScript unit testing. This course is designed for users that already have a basic understanding of JavaScript.
You will start by learning the basics of unit testing, then jump into learning how to code for testability. From there, Mark will teach you about Jasmine, including how to run and select tests, write a custom matcher, and how to extend Jasmine. This video tutorial also covers other JavaScript testing frameworks, such as QUnit and Mocha. Finally, you will learn about automation and continuous integration.
Once you have completed this computer based training course, you will have learned everything you need to know about JavaScript unit testing and automation. Working files are included, allowing you to follow along with the author throughout the lessons.
Table of contents
- Introduction
-
Unit Testing Basics
- Unit Testing Terminology
- What A JavaScript Unit Test Looks Like
- Writing Your Own Javscript Unit Test
- Assertions
- The Role Of Code Coverage
- How JavaScript Unit Test Is Different
- JavaScript Unit Test Flow
- Manual Unit Testing
- JavaScript Unit Test Frameworks
- Running Unit Tests
- JavaScript Unit Test Environments
- Synchronous And Asynchronous Unit Tests
- Introduction Test Driven Development
- Test Driven Development In Practice
- Coding For Testability
-
Jasmine
- Introduction To Jasmine
- Jasmine On The Client
- Jasmine On The Server
- Starting Your First Test
- Writing Your First Test
- Selecting Tests
- Running Tests
- Introduction To Basic Matchers
- More Basic Matchers
- Asymmetric Matchers
- Introduction To Custom Matchers
- Custom Matcher Error Messages
- Custom Matcher Example - toBeVisible
- Basic Spying
- More Spying
- Advanced Spying
- Setup And Teardown - Nesting
- Setup And Teardown - Variables
- Asynchronous Tests
-
Extending Jasmine
- Introduction To is.js
- Integration is.js With Jasmine
- Jasmine - Matchers And Promises
- Introduction To saywhen
- saywhen And Captors
- Mocking Time
- Introduction To Mocking Ajax
- Mocking Ajax Responses
- Encapsulation Mocked Ajax
- Introduction To Jasmine-jQuery Matchers
- Introduction To Jasmine-jQuery Fixtures
- Using Jasmine-jQuery Fixtures
- Jasmine-jQuery Fixtures And The Dom
- Testing With Jasmine-jQuery Fixtures
- Other Fixture Operations
- Event Spies
- Introduction To Code Coverage With Istanbul
- Manual Code Coverage Generation
-
Other JavaScript Testing Frameworks
- Introduction To QUnit
- Using Qunit
- More QUnit
- Introduction To Mocha
- More Mocha
- Even More Mocha
- Introduction To Tape
- Using Tape
- ESLint
- Sinon.JS And Spies
- Sinon.JS Stubs
- Sinon.JS Mocks
- Sinon.JS Mocking Ajax
- Introduction To Istanbul
- Using Istanbul
- Introduction To Selenium WebDriver
- Using WebDriver
- WebDriver And GhostDriver And PhantomJS
- Headless And Scriptable Browsers
-
Automation
- The Role Of Automation
- How To Automate
- Introduction To Karma
- Using Karma
- Karma In The Real World - Part 1
- Karma In The Real World - Part 2
- Karma In The Real World - Part 3
- Karma And Code Coverage
- Grunt
- Gulp
- Bower
- Yeoman
- Introduction To npm - package.json And semver
- npm Dependencies And Scripts
- npm Configuration Variables
- npm And Versions And Shrinkwrap
-
Continuous Integration
- What Is Continuous Integration?
- Getting Started With Jenkins
- Jenkins Project Setup
- Jenkins Capturing Test Output
- Jenkins And Checkstyle
- Jenkins And Code Coverage
- Jenkins And Gulp
- Using GitHub
- Introduction To Travis CI
- Preparing Your GitHub Repo For Travis CI Integration
- Travis CI And Headless Testing With Firefox And Xvfb
- Travis CI Wrap-Up
- Wrap-Up
Product information
- Title: Javascript Unit Testing
- Author(s):
- Release date: October 2015
- Publisher(s): Infinite Skills
- ISBN: 9781771374569
You might also like
book
Testing JavaScript Applications
Automated testing will help you write high-quality software in less time, with more confidence, fewer bugs, …
video
Mastering Clean Code in JavaScript
Alongside HTML and CSS, JavaScript is one of the three core technologies of World Wide Web …
video
Learn Java Unit Testing with JUnit 5 in 20 Steps
JUnit is a unit testing framework for the Java programming language. JUnit has been important in …
book
jQuery in Action, Third Edition
jQuery in Action, Third Edition, is a fast-paced and complete guide to jQuery, focused on the …