2014
Tuts+
Jason Rhodes
2:00
English
In this course you'll gain a basic understanding of the fundamentals of unit testing your JavaScript code using some popular testing tools. By the end of this course you should feel empowered and excited to start writing tests for all of your JavaScript code, whether it's for the server or the client.
1.Introduction
1.1 Introduction
1.2 Getting Started
1.3 Writing Your First Test
1.4 Building a Test Suite
1.5 Mocha on the Command Line
2.Fundamental Concepts of JavaScript Unit Testing
2.1 Dependency Injection
2.2 Asynchronous Testing
2.3 Before and After Hooks
2.4 Segmenting with Skip and Only
2.5 Fixtures
3.Using Chai Assertions
3.1 Chai Assert
3.2 Chai Should
3.3 Chai Expect
4.Putting it All Together
4.1 Running Mocha Tests in the Browser
4.2 Automated Browser Testing with Testling
4.3 Continuous Integration with Travis CI
5.More Control with Sinon.JS
5.1 Introduction to Sinon
5.2 Sinon Spies
5.3 Sinon Stubs
5.4 Sinon Mocks
6.Conclusion
6.1 Conclusion
Download File Size:1.24 GB