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.
Permalink
Failed to load latest commit information.
src Added unit tests. Sep 28, 2016
LICENSE Initial commit Sep 28, 2016
README.md Update README.md Sep 30, 2016

README.md

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:

https://login.salesforce.com/packaging/installPackage.apexp?p0=04t580000007djW

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):

JobsSetup.SetupData();

Jobs App

Access the jobs app via the JobsApp.app 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:

https://<mydomain>.lightning.force.com/c/JobsTestApp.app

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

https://trailheadident-dev-ed.lightning.force.com/c/JobsTestApp.app

Jobs Test App

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

jobtestapp

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