lovinghouston / lwcgoogleplacesbutton

Adds a Lightning Web Component to create Google Place Listings (currently hardcoded to type "church") as a Salesforce object (currently hardcoded to a custom object named Church_School_Partnership__c).
3 stars 1 forks source link

Unit Tests for All Existing Code [Dependent on Duplicates & Fields tickets] #37

Closed Julian88Tex closed 4 years ago

Julian88Tex commented 4 years ago

As a developer/QA on this project, I would like to be able to deploy our code to LH's production org.

ACs

Given an LH dev Sandbox org And "Find Churches" button project code is pushed to Sandbox When I click "Run All" unite tests Then All unit tests run And All unit tests pass And Code Coverage is 85% or more

Given LH's production org and an inbound change set is created from an LH dev Sandbox And Sandbox contains the newest "Find Churches" button project code When the change set is deployed Then the change set deployment passes And there are no errors And LH's production org contains the newest "Find Churches" button project code

sungysang commented 4 years ago

https://salesforce.stackexchange.com/questions/139235/how-to-create-mock-class-for-multiple-callouts-in-single-class

Julian88Tex commented 4 years ago

Good job. Confirmed unit tests are above 85% and that all tests pass:

Screenshot 2020-04-07 21 12 25

Additionally, I created a Github action that runs these tests on every push.