Integrating Test Automation with Salesforce DX [VIDEO]
With Salesforce DX now on general release, we thought it was time to give it a test-run with Provar. After a few late nights last week, the team got everything up and running in time for a sneak peek during our latest webinar. Read on to find out how it went…
So what is Salesforce DX?
Salesforce DX is an interesting new concept that’s been in the works for a while but has now gone GA as of Winter 18.
The key idea is that it provides Scratch Orgs that you can spin up quickly for testing your Salesforce deployments. Once you’ve signed up for a DevHub account, you can rapidly generate a Scratch Org, push your latest code to it, test it out, then discard.
Unlike sandboxes, Scratch Orgs only exist for a brief period, so the best approach is to create a new Scratch Org every time you want to deploy. After you’ve tested your deployment in the Scratch Org, you can discard it straight away.
What’s the benefit of Salesforce DX?
Salesforce DX helps to mitigate some of the risks associated with normal Salesforce deployments. It’s going to help us move towards a single point of truth with source control, as well as providing tools to hooking everything into a Continuous Integration cycle.
How does Provar work with Salesforce DX?
When Provar and Salesforce DX are used together, we can generate a Scratch Org, push our latest code to it, then run our Provar tests inside the Scratch Org to get functional testing insights.
Provar and Salesforce DX both work nicely with Git and Jenkins, so this is surprisingly easy to set up. You can see the full flow below.
See it in action
Take a look at the demo video below to see Provar working with Salesforce DX.