Lightning Web Component for Dynamic SOQL Queries in Salesforce
How I Ensure Quality in Dynamic Query Framework
Passing
WCAG 2.1 AA
All Docs Valid
Apex + JavaScript
I pioneer a unique development approach led by Error-Driven Development (EDD), complemented by three proven methodologies. Each serves a specific purpose in my workflow, but EDD is my guiding principle.
Let errors guide implementation - build only what's needed, when it's needed
Automated testing of complete user workflows from start to finish
Define expected behavior in human-readable scenarios
Write tests first, then implement code to make them pass
Error-Driven Development is my foundational methodology because it eliminates guesswork and over-engineering. Instead of planning every detail upfront, I write a failing test (TDD), run it, and let the error messages tell me exactly what to build next. This approach is particularly powerful in Salesforce development where platform constraints and governor limits are constantly revealed through errors. Combined with BDD scenarios for requirements and E2E tests for validation, EDD creates a tight, efficient feedback loop that delivers working features faster than traditional approaches.
Here's how Error-Driven Development leads my workflow, supported by BDD, E2E, and TDD:
Write a Gherkin scenario describing the user's expected behavior
Create an E2E test using Playwright that implements the BDD scenario
This is where the magic happens: Run the test and follow each error message. Each error tells you exactly what to build next - no guessing, no over-engineering.
Clean up code while keeping tests green
My E2E tests simulate real user interactions in a browser, validating the complete application stack from UI to database.
Here's a complete example from my project showing all methodologies working together:
Errors guide us directly to what needs to be built next, no guessing or over-engineering
Every feature is tested before deployment, catching bugs in development instead of production
BDD scenarios serve as living documentation that's always up-to-date with the codebase
Comprehensive test coverage means I can refactor with confidence, knowing tests will catch regressions
You can run my test suite locally or in CI/CD: