Codebase for the Unit Testing Lightning Components with Jasmine Dreamforce 16 Dev Zone talk
JavaScript Apex CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src Added unit tests. Sep 28, 2016
LICENSE Initial commit Sep 28, 2016 Update Sep 30, 2016

Unit Testing Lightning Components with Jasmine

Codebase for my Dreamforce 16 Dev Zone Talk. You can find the slides here.

My Domain

Lightning components require My Domain so don't forget to turn that on first!

Unmanaged Package

While all the code elements are here and you can deploy them to your Salesforce instance, it's easier (particularly when deploying Lightning Components!) to install the unmanaged package:

Set up Test Data

You'll need some date in order to try out the test application. You can create this yourself or you can execute the following Apex code (from the Developer Console Debug -> Execute Anonymous window, for example):


Jobs App

Access the jobs app via the Lightning Application. Open this in the Developer Console via the File -> Open Lightning Resources menu. Once you have this open, click the Preview pane on the top right of the page.

The application will open via a URL with the following format:


e.g. in one of my dev orgs this is:

Jobs Test App

Access the jobs test app via the Lightning Application, using the same mechanism as above. This loads the test page :


Click one of the buttons to execute the tests and report the results.