
JavaScript Testing
Summary
In this course you'll learn how to write JavaScript applications with confidence, using the red-green-refactor workflow. You'll write comprehensive suites of tests that validate your application is functioning as intended at all times.
You'll start by exploring how other industries use a variety of tests and the value it provides. You'll then start writing your very own tests, using the Jasmine testing framework. Finally, you'll start developing your very own address book application using the red-green-refactor workflow and explore a variety of scenarios including testing asynchronous functions.
Expected Learning
As your applications become more complex and you continue adding new features, you need to verify your additions haven't introduced bugs to your existing functionality. Automated testing provides this functionality and allows you to focus on.
Syllabus
Overview
This course consists of 2 lessons. In the first lesson, you'll discover the importance of testing and reconsider its purpose and the value it provides. In the second lesson, you'll explore the Jasmine testing framework write your own test suites while developing an address book application.
Lesson 1: Rethinking Testing
From education to aerospace, tests provide invaluable feedback to those that analyze the results. In this lesson, you'll learn all about the importance of testing, how to identify the expectations a test is attempting to validate and how to write expectations in code.
Topics covered:
- What is a test?
- Validating opinions
- Identifying and defining expectations
- Writing expectations in code
Lesson 2: Writing Test Suites
JavaScript doesn't support testing natively, so you'll need a framework to provide the functionality you need. In this lesson, you'll get an introductions to the Jasmine testing framework and use the red-green-refactor workflow to begin development on an address book application.
Topics covered:
- Introduction to Jasmine
- Writing suites, specs and tests
- The red-green-refactor workflow cycle
- Testing asynchronous functionality
Required Knowledge
You should be comfortable writing JavaScript and using its object-oriented programming features. If you need a refresher on these subjects, consider taking our JavaScript Basics and Object-Oriented JavaScript courses.
Free
Intermediate
2 weeks
Michael Wales
Coursearena