Skip to content

test: add 18 unit tests for prompt_score scoring logic#131

Open
TerminalGravity wants to merge 1 commit intomainfrom
test/prompt-score-unit-tests
Open

test: add 18 unit tests for prompt_score scoring logic#131
TerminalGravity wants to merge 1 commit intomainfrom
test/prompt-score-unit-tests

Conversation

@TerminalGravity
Copy link
Collaborator

@TerminalGravity TerminalGravity commented Mar 6, 2026

First tool-level tests — covers all 4 scoring dimensions, grading, and feedback for scorePrompt. Exports the function for testability. Test count: 43 → 61.

Copy link
Collaborator Author

@TerminalGravity TerminalGravity left a comment

Choose a reason for hiding this comment

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

Nice test suite. Good mix of high/medium/low quality prompt scenarios and edge cases. The export of scorePrompt and ScoreResult is the right call for testability. Ready to merge.

- Export scorePrompt function for testability
- Test all 4 scoring dimensions (specificity, scope, actionability, done condition)
- Test grading thresholds (A+ through F)
- Test feedback generation for low and high scores
- First tool-level test file (tests/tools/ directory)

Increases test count from 43 to 61.
@TerminalGravity TerminalGravity force-pushed the test/prompt-score-unit-tests branch from 97fd590 to 1f0ce28 Compare March 7, 2026 04:44
@TerminalGravity TerminalGravity changed the title test: add 16 unit tests for prompt_score scoring logic test: add 18 unit tests for prompt_score scoring logic Mar 7, 2026
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.

1 participant