Lightning Testing Service LTS

Lightning Testing Service (LTS)

In this session we talk about Lightning Testing Service (LTS). Lightning Testing Service (LTS) framework is a set of tools designed to help you to test the JavaScript in your Lightning Components.

Jasmine and Mocha support is provided as a part of Lightning Test Service (LTS) by Salesforce. Jasmine and Mocha, both are well known and industry wide solution accepted in Javascript world. of course, Salesforce don’t want to stay behind in terms of its offering to developers thats why we have new baby in town – Lightning Test Service (LTS).

What is Lightning Testing Service (LTS)?

Lightning Testing Service (LTS) framework is a set of tools designed to help you to test the JavaScript in your Lightning Components. Using this tool will be very important in ensuring that your Lightning components behave as expected. Lightning Testing Service currently provides wrappers for Jasmine and Mocha, and you can create your own wrappers for other frameworks.

What is Jasmine

  • Behavior Driven Development (BDD) framework for testing JavaScript
  • Clean and Obvious Syntax
  • Not dependent on any other JS framework
  • Just like any standard Test unit framework, equivalent capabilities
    • Group Tests
    • Assertions
    • Setup and Teardown
  • Download from here

Other Framework Support

  1. Other than Jasmine, Mocha is also supported
  2. You can use any other Javascript testing framework as well

How to setup Jasmine

Please check this post for step by step process.

Recording

Agenda :-

  • What is Jasmine
  • Demo of Simple Jasmine Application
  • Other Frameworks
  • Considerations for Lightning Testing Service
  • Q&A

Speaker : Jitendra Zaa, Amit Chaudhary
Date : Saturday, MAR 10, 2018 10:00 AM EST

Here is PPT


Please Subscribe to the channel to get notification for upcoming recording.

If you are new in Salesforce. Please check our free Salesforce Admin and Salesforce Developer training.

Thanks,
Salesforce Apex Hours

446 total views, 2 views today

Leave a Comment