Skip to content

Commit

Permalink
v1.6.30 - Updates Extra Code Coverage Plugin (#610)
Browse files Browse the repository at this point in the history
* Initial commit removing invalid comment

* Upgraded SF scanner dep, verified with act

* Updates Rollup.FlowInput variables to take advantage of the new defaultValue syntax for invocable variables

* Additional null coalescing cleanup

* Fixes #607 by updating Extra Code Coverage plugin. Sews up the behavior of RollupFlowTests.shouldReportErrorWhenConcatDelimiterSetAndNotConcat - thanks to @bfalter for reporting!
  • Loading branch information
jamessimone authored Jul 25, 2024
1 parent 274d640 commit df7b7db
Show file tree
Hide file tree
Showing 19 changed files with 23,542 additions and 13,570 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:

- name: 'Upload code coverage for LWC to Codecov.io'
uses: codecov/codecov-action@v3
if: ${{ !github.event.act }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: LWC
Expand All @@ -63,6 +64,13 @@ jobs:
run: |
rm coverage/ -rf
- name: 'Optionally setup java'
uses: actions/setup-java@v4
if: ${{ github.event.act }}
with:
distribution: 'zulu'
java-version: '17'

- name: Install & run SFDX Scanner
run: npm run scan

Expand Down Expand Up @@ -96,6 +104,7 @@ jobs:
# Upload Apex code coverage data
- name: 'Upload Apex code coverage for Apex to Codecov.io'
uses: codecov/codecov-action@v3
if: ${{ !github.event.act }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: Apex
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ sfge-*.log.gz
#OSX
.DS_Store
.config
.vscode
.vscode
config/data/act-pr-event.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ As well, don't miss [the Wiki](../../wiki), which includes even more info for co

## Deployment & Setup

<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008ObNNAA0">
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008ObVhAAK">
<img alt="Deploy to Salesforce"
src="./media/deploy-package-to-prod.png">
</a>

<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008ObNNAA0">
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t6g000008ObVhAAK">
<img alt="Deploy to Salesforce Sandbox"
src="./media/deploy-package-to-sandbox.png">
</a>
Expand Down
6 changes: 1 addition & 5 deletions extra-tests/classes/RollupFieldInitializerTests.cls
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ private class RollupFieldInitializerTests {
System.assertEquals('', initializer.getDefaultValue(Account.Phone), 'phone');
System.assertEquals('', initializer.getDefaultValue(Contact.Email), 'email');
System.assertEquals('', initializer.getDefaultValue(Contact.AccountId), 'reference');
System.assertEquals(
Task.Subject.getDescribe().getDefaultValue() != null ? Task.Subject.getDescribe().getDefaultValue() : '',
initializer.getDefaultValue(Task.Subject),
'combobox'
);
System.assertEquals(Task.Subject.getDescribe().getDefaultValue() ?? '', initializer.getDefaultValue(Task.Subject), 'combobox');
}

@IsTest
Expand Down
6 changes: 5 additions & 1 deletion extra-tests/classes/RollupFlowTests.cls
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ private class RollupFlowTests {
);

flowInputs[0].concatDelimiter = ';';
flowInputs[0].splitConcatDelimiterOnCalcItem = true;

Exception ex;
try {
Expand All @@ -599,7 +600,10 @@ private class RollupFlowTests {
ex = e;
}

System.assertEquals('Concat delimiter should only be supplied for CONCAT-based rollups.', ex?.getMessage().trim());
System.assertEquals(
'Concat delimiter should only be supplied for CONCAT-based rollups. Concat options should only be set for CONCAT_DISTINCT operations',
ex?.getMessage()
);
}

@IsTest
Expand Down
Loading

0 comments on commit df7b7db

Please sign in to comment.