Phase 10: Tooling API for developer workflows#25
Conversation
Add Tooling API support with apex, log, and coverage commands: - api/tooling: New package for Tooling API client with query, execute anonymous, test running, and log retrieval capabilities - sfdc apex: Apex class operations - list: List Apex classes or triggers - get: Get class/trigger source code - execute: Execute anonymous Apex - test: Run Apex tests asynchronously - sfdc log: Debug log operations - list: List recent debug logs - get: Get log content - tail: Stream new logs continuously - sfdc coverage: Code coverage reporting with minimum threshold Closes #20
Test Coverage Assessment for PR #25: Tooling API for Developer WorkflowsSummaryThis PR adds substantial new functionality (Tooling API client, Apex commands, Log commands, Coverage command) with good overall test coverage. The tests follow established patterns using httptest for mocking and table-driven tests. However, there are some gaps worth noting. What's Well CoveredTooling API Client (
Apex Commands (
Coverage Command (
Log Commands (
Coverage Gaps1.
2.
3.
4. Runtime error path in
5. No tests for
Pragmatic AssessmentShould these gaps block merge? No, for these reasons:
Recommended follow-up (non-blocking):
Code Quality Notes
|
|
Addressed the TDD assessment feedback by adding tests for:
|
Summary
api/tooling/) for developer workflow operationssfdc apexcommands: list, get, execute, testsfdc logcommands: list, get, tailsfdc coveragecommand with minimum threshold supportNew Commands
Apex Operations
Log Operations
Coverage
Test plan
Closes #20
🤖 Generated with Claude Code