🚀 sfdx-wly - Salesforce DX Coverage & Change AnalyzerDigite Ctrl + Shift + P: ![]() A powerful Visual Studio Code extension that helps Salesforce developers to:
✨ Features🔁 Comparison with
|
Command | Description |
---|---|
sfdx.wly.compareWithMain |
Compares files with the main branch and shows coverage & tests |
sfdx.wly.updateCoverageInPackage |
Show coverage display in the package.xml file |
🧠 How It Works
- The extension activates when you open the project
- Coverage is queried via SOQL from
ApexCodeCoverageAggregate
usingsfdx
- Data is shown:
- In an interactive HTML WebView grouped by folder
- Directly in
package.xml
via visual decoration
🖼️ Visual Example
<members>AccountContractDAO</members> 🔴 42%
<members>GenericWrapper</members> 🟢 87%
📂 File Panel
📁 src/force-app/main/default/classes
✏️ AccountContractBizService.cls 🔴 47%
🧪 AccountContractBizServiceTest.cls
⚙️ Requirements
- Salesforce CLI (
sfdx
) installed and authenticated - Git configured with a
main
branch - Standard Salesforce DX folder structure
📁 Recommended Structure
📦 manifest/
└── package.xml
📦 force-app/
└── main/
└── default/
└── classes/
├── AccountController.cls
├── AccountControllerTest.cls
🧩 Recommended Extensions
- Salesforce Extension Pack
- GitLens
- Apex Replay Debugger
🛠️ Contribution
Contributions are welcome!
Feel free to open issues, pull requests, or suggest improvements.
👥 Contributors
We thank the following contributors who helped make this project a reality:
Name | GitHub | Contribution |
---|---|---|
Wlysses | wlyssescerqueira | Salesforce development |
How to Contribute
Send a e-mail to wlysses@gmail.com
License
This project is licensed under the MIT License.