Oreilly - Javascript Unit Testing
by | Released October 2015 | ISBN: 9781771374569
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. Show and hide more Publisher resources Download Example Code
- Introduction
- Types Of Software Testing 00:07:31
- The Testing Pyramid 00:06:38
- What You Will Learn In This Course 00:04:09
- About The Author 00:02:22
- Unit Testing Basics
- Unit Testing Terminology 00:09:46
- What A JavaScript Unit Test Looks Like 00:05:42
- Writing Your Own Javscript Unit Test 00:04:37
- Assertions 00:07:24
- The Role Of Code Coverage 00:07:07
- How JavaScript Unit Test Is Different 00:06:59
- JavaScript Unit Test Flow 00:05:14
- Manual Unit Testing 00:06:48
- JavaScript Unit Test Frameworks 00:08:04
- Running Unit Tests 00:04:02
- JavaScript Unit Test Environments 00:07:55
- Synchronous And Asynchronous Unit Tests 00:05:47
- Introduction Test Driven Development 00:04:37
- Test Driven Development In Practice 00:12:33
- Coding For Testability
- What Is Testable Code? 00:05:27
- Cyclomatic Complexity 00:07:56
- Fan-In And Fan-Out 00:06:31
- Coupling 00:07:14
- Inheritance Or Composition? 00:10:07
- Code Injection 00:09:22
- Using Decorators 00:07:47
- Leveraging Abstract Factories 00:06:38
- Measuring Complexity 00:09:30
- Getting To Testability 00:07:49
- Jasmine
- Introduction To Jasmine 00:11:02
- Jasmine On The Client 00:05:27
- Jasmine On The Server 00:07:02
- Starting Your First Test 00:07:36
- Writing Your First Test 00:11:24
- Selecting Tests 00:06:02
- Running Tests 00:06:18
- Introduction To Basic Matchers 00:08:33
- More Basic Matchers 00:08:10
- Asymmetric Matchers 00:10:05
- Introduction To Custom Matchers 00:06:25
- Custom Matcher Error Messages 00:04:33
- Custom Matcher Example - toBeVisible 00:08:13
- Basic Spying 00:06:24
- More Spying 00:07:18
- Advanced Spying 00:09:04
- Setup And Teardown - Nesting 00:07:50
- Setup And Teardown - Variables 00:09:04
- Asynchronous Tests 00:06:41
- Extending Jasmine
- Introduction To is.js 00:04:57
- Integration is.js With Jasmine 00:10:51
- Jasmine - Matchers And Promises 00:06:57
- Introduction To saywhen 00:05:48
- saywhen And Captors 00:04:36
- Mocking Time 00:05:56
- Introduction To Mocking Ajax 00:09:50
- Mocking Ajax Responses 00:06:46
- Encapsulation Mocked Ajax 00:03:30
- Introduction To Jasmine-jQuery Matchers 00:08:20
- Introduction To Jasmine-jQuery Fixtures 00:05:18
- Using Jasmine-jQuery Fixtures 00:07:16
- Jasmine-jQuery Fixtures And The Dom 00:07:12
- Testing With Jasmine-jQuery Fixtures 00:07:06
- Other Fixture Operations 00:04:41
- Event Spies 00:08:13
- Introduction To Code Coverage With Istanbul 00:07:05
- Manual Code Coverage Generation 00:07:18
- Other JavaScript Testing Frameworks
- Introduction To QUnit 00:07:51
- Using Qunit 00:06:31
- More QUnit 00:06:11
- Introduction To Mocha 00:06:28
- More Mocha 00:06:38
- Even More Mocha 00:05:27
- Introduction To Tape 00:05:46
- Using Tape 00:06:43
- ESLint 00:08:16
- Sinon.JS And Spies 00:09:11
- Sinon.JS Stubs 00:08:43
- Sinon.JS Mocks 00:09:15
- Sinon.JS Mocking Ajax 00:07:28
- Introduction To Istanbul 00:06:35
- Using Istanbul 00:08:23
- Introduction To Selenium WebDriver 00:06:57
- Using WebDriver 00:06:12
- WebDriver And GhostDriver And PhantomJS 00:04:58
- Headless And Scriptable Browsers
- Introduction To PhantomJS 00:07:08
- Using PhantomJS With Jasmine 00:07:00
- Scripting PhantomJS And Waits 00:03:54
- Introduction To SlimerJS 00:06:20
- Using SlimerJS 00:06:05
- Introduction To CasperJS 00:06:00
- CasperJS Test API 00:07:00
- Introduction To Xvfb 00:06:31
- Using Xvfb 00:04:58
- Automation
- The Role Of Automation 00:07:40
- How To Automate 00:09:55
- Introduction To Karma 00:09:00
- Using Karma 00:07:24
- Karma In The Real World - Part 1 00:08:30
- Karma In The Real World - Part 2 00:05:51
- Karma In The Real World - Part 3 00:06:47
- Karma And Code Coverage 00:07:02
- Grunt 00:06:20
- Gulp 00:06:22
- Bower 00:06:06
- Yeoman 00:07:24
- Introduction To npm - package.json And semver 00:06:52
- npm Dependencies And Scripts 00:06:16
- npm Configuration Variables 00:04:38
- npm And Versions And Shrinkwrap 00:07:56
- Continuous Integration
- What Is Continuous Integration? 00:06:06
- Getting Started With Jenkins 00:06:16
- Jenkins Project Setup 00:04:30
- Jenkins Capturing Test Output 00:06:57
- Jenkins And Checkstyle 00:04:22
- Jenkins And Code Coverage 00:07:10
- Jenkins And Gulp 00:06:56
- Using GitHub 00:04:48
- Introduction To Travis CI 00:05:37
- Preparing Your GitHub Repo For Travis CI Integration 00:08:25
- Travis CI And Headless Testing With Firefox And Xvfb 00:07:58
- Travis CI Wrap-Up 00:06:11
- Wrap-Up
- What We Have Learned 00:11:53
Show and hide more
TO MAC USERS: If RAR password doesn't work, use this archive program:
RAR Expander 0.8.5 Beta 4 and extract password protected files without error.
TO WIN USERS: If RAR password doesn't work, use this archive program:
Latest Winrar and extract password protected files without error.