New Version v4.9.8 - Testing Fixes & Improvements #427
jongpie
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pipeline Improvements
build.yml
) that was preventing tests in theextra-tests
folder from being deployed/executed, which caused the reported code coverage to drop several percentage points (95% to 91%)sfdx force:source:push
instead ofsfdx force:source:deploy
- for some reason, theextra-tests
folder was not being pushed to the scratch orgs in the pipeline, so I've reverted back to usingsfdx force:source:deploy
package-lock.json
to fix a dependabot security alert in GitHubCore Unlocked Package Changes
After resolving the above pipeline issue, I've updated several Apex test classes to cover edge scenarios that the existing tests didn't cover - this also led to fixing a few issues:
LoggerPlugin
where a runtime error would occur if the specified Apex class for a plugin did not implement the corresponding interface (LoggerPlugin.Batchable
orLoggerPlugin.Triggerable
) - now,LoggerPlugin
gracefully skips any misconfigured plugins/classes.LogBatchPurgeController
class to use strongly-typed SObject tokens, instead of hardcoded Stringstry-catch
blocks in a few classes where an exception is not expected to occurLogEntryEventBuilder.setTransactionDetails()
LoggerEngineDataSelector
that preventedNetwork
data from being properly queriedLogEntryEvent__e.RequestId__c
had been incorrectly flagged as a required field, and as reported by @chazwatkins, the value ofSystem.Request.getCurrent().getRequestId()
is null for theautoproc
user (and possibly other scenarios).Full Changelog: v4.9.7...v4.9.8
This discussion was created from the release Testing Fixes & Improvements.
Beta Was this translation helpful? Give feedback.
All reactions