Skip to content

test(join-trigger, inline-tools): 28 tests — mention-prefix format + workspace skill scan - #1213

Closed
bassilkhilo-ag2 wants to merge 1 commit into
sonichi:mainfrom
bassilkhilo-ag2:test/join-trigger-and-inline-tools
Closed

bassilkhilo-ag2 wants to merge 1 commit into
sonichi:mainfrom
bassilkhilo-ag2:test/join-trigger-and-inline-tools

Conversation

@bassilkhilo-ag2

Copy link
Copy Markdown
Collaborator

Summary

Adds 28 tests for two distinct coverage gaps.

tests/join-trigger-mention-prefix.test.py (25 tests) — #1113 companion

Guards the @-mention prefix format that JoinTrigger prepends to voice-session invitations:

  • Mention format: <@USER_ID> with exactly one trailing space
  • Newline handling: phrase + newline separator
  • Multi-phrase edge cases: first phrase wins, empty list returns None
  • Mention-only mode: when no join-phrase configured, bare mention is the trigger

tests/inline-tools-workspace-skills-scan.test.ts (3 tests) — #1081 companion

Structural tests ensuring inline-tools scans $SUTANDO_WORKSPACE/skills/ for dynamically-loaded skill manifests (not just the repo-root skills/ directory):

  • Path points into workspace, not repo root
  • Gracefully handles missing workspace skills dir (no crash)
  • Skill TOML/JSON files are picked up when present

All 28/28 tests pass.

…workspace skill scan

join-trigger-mention-prefix.test.py (25): Guards the @-mention prefix
that join-trigger adds to voice-session invitations — correct format,
trailing whitespace, newline handling, multi-phrase edge cases. Closes
sonichi#1113 test coverage gap.

inline-tools-workspace-skills-scan.test.ts (3): Structural tests verifying
inline-tools scans $SUTANDO_WORKSPACE/skills/ (not just repo-root skills/)
for dynamically-loaded skill manifests. Guards the workspace-skills path
from sonichi#1081.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@VasiliyRad VasiliyRad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

28 tests covering mention-prefix format + workspace skill scan. 2 test files, no source changes. LGTM 👍

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.

2 participants