Play by Play: Supercharge your Lightning Component Development with Salesforce Lightning Testing Services

In this course, you’ll learn what Lightning Testing Service is and why you would use unit testing for Lightning Components.
Course info
Level
Intermediate
Updated
Nov 8, 2018
Duration
1h 38m
Table of contents
Description
Course info
Level
Intermediate
Updated
Nov 8, 2018
Duration
1h 38m
Description

Play by Play is a series in which top technologists work through a problem in real time, unrehearsed, and unscripted. In this course, Play by Play: Supercharge your Lightning Component Development with Salesforce Lightning Testing Services, Adam Daw and Don Robins demonstrate the Lightning Testing Service (also known as LTS), and how to integrate it with automated Client Side Testing and Continuous Integration. Learn about JavaScript frameworks and libraries, how LTS integrates with Lightning Components and Salesforce DX, and the differences between Test Driven Design (TDD) and Behavior Driven Design. By the end of this course, you’ll have a solid understanding of LTS and a jump start for integrating client side testing into your Salesforce development process.

About the author
About the author

Don Robins is a well known Salesforce MVP, instructor, author, and speaker. A custom business application developer for more decades than he cares to admit, he focuses on Salesforce technical instruction and knowledge sharing.

More from the author
More courses by Don Robins
About the author

Adam Michael Daw is Head of Engineering at CoVenture, and the Ottawa Salesforce Developer Group Leader. He has been working with the Salesforce Platform since 2008, and spends most of his time thinking about Enterprise Application Development, Systems Automation and Emerging Technologies.

More from the author
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Welcome to this Salesforce Play by Play with Pluralsight. Salesforce Play by Play is an interactive series where we sit down with Salesforce experts, such as MVPs, consultants, developers, and architects to discuss common challenges faced everyday by Salesforce customers. In this course, we challenge Adam Daw, Head of Engineering at CoVenture and the Ottawa Salesforce Developer Group Leader to help us understand the Lightning Testing Service, also known as LTS, and how to integrate it with automated client-side testing and continuous integration. First, Adam introduces us to the JavaScript frameworks and libraries of Jasmine, Mocha, and Chai. He explains how the Lightning Testing Service depends on them, how and why developers should choose between them, and clarifies the differences between test-driven design and behavior- driven design. He demonstrates the LTS installation and configuration processes, walks us through the basics of defining, running, and editing tests, and explains just how the LTS integrates with Lightning components in Salesforce DX. Next, Adam takes us on a deep dive to explicitly dissect and demonstrate the many aspects of writing LTS tests for component attributes, UI behavior, global values, facets, events, and more. He wraps up with an overview of coverage reporting and combining LTS with continuous integration and some suggested best practices. By the time we're done, you'll have a solid understanding of LTS and a jumpstart for integrating client-side testing into your Salesforce development process. So whether you're a beginner, intermediate, or advanced Salesforce developer, please join us for Super Charge Your Lightning Component Development With Salesforce Lightning Testing Services. We hope you enjoy it.

Summary and Recap
Well that's a lot to chew on, but great stuff and incredibly detailed. And you can really see the differences between the different approaches and all of the different options, which is just amazing. So let's recap what we've covered at a high level just sort of to go back and where did we start, and where did we get to, and maybe where would somebody go next? So we started off with a problem that we want to try to come up with best practices for testing Lightning components. Some of the heavy lifting for that has been done for us by Salesforce and the teams there through the Lightning Testing Service. It makes it easy to interact with different Lightning components. They've provided some very clear steps on how to walk through and interact with different events and actions and attributes in this example that we have also stepped through. Hopefully we provided some additional context around that. I think we've also given people more information on Jasmine and Mocha, two very, very popular JavaScript testing frameworks, the differences between them, and also some recommendations on where to get started if this is your first foray into front end testing. Beyond that, we've also talked about how you could tie this into a continuous integration framework and how you can modify your outputs to get the reporting that your team needs.