Skip to content

feat(#300): add exec skill guidance for testing non-exported functions - #312

Closed
admarble wants to merge 1 commit into
mainfrom
feature/300-feat-add-exec-skill-guidance-for-non-exportable-fu
Closed

admarble wants to merge 1 commit into
mainfrom
feature/300-feat-add-exec-skill-guidance-for-non-exportable-fu

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds section 3e "Testing Non-Exported Functions (REQUIRED)" to the exec skill with decision tree guidance
  • Explicitly warns against tautological tests (local-variable-only assertions that provide no regression protection)
  • Provides code examples for three recommended patterns: @internal export, dependency injection, and integration testing
  • Adds documentation fallback guidance when direct testing is not possible

Pre-PR AC Verification

AC Source Description Status Evidence
AC-1 Original Decision tree for testing non-exported functions ✅ Implemented .claude/skills/exec/SKILL.md:1077-1092
AC-2 Original Warning against tautological tests ✅ Implemented .claude/skills/exec/SKILL.md:1094-1107
AC-3 Original Code examples for @internal, DI, integration patterns ✅ Implemented .claude/skills/exec/SKILL.md:1109-1173
AC-4 Original Document limitation rather than fake tests ✅ Implemented .claude/skills/exec/SKILL.md:1175-1218

Test plan

  • Manual review: Verify ASCII decision tree with 4 paths is present
  • Manual review: Verify bold warning block against tautological tests
  • Manual review: Verify 3 TypeScript examples (@internal, DI, integration)
  • Manual review: Verify documentation fallback guidance with 4 requirements

Closes #300

🤖 Generated with Claude Code

- Add section 3e with decision tree for handling non-exported functions
- Add explicit warning against tautological tests (local-variable-only assertions)
- Add code examples for @internal export, dependency injection, and integration testing
- Add documentation fallback guidance when direct testing is not possible
@admarble admarble closed this Feb 22, 2026
@admarble
admarble deleted the feature/300-feat-add-exec-skill-guidance-for-non-exportable-fu branch February 22, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add exec skill guidance for non-exportable function testing

1 participant