Skip to content

test: add 17 unit tests for prompt_score scoring logic - #79

Closed
TerminalGravity wants to merge 3 commits into
mainfrom
test/prompt-score-unit-tests-v2
Closed

test: add 17 unit tests for prompt_score scoring logic#79
TerminalGravity wants to merge 3 commits into
mainfrom
test/prompt-score-unit-tests-v2

Conversation

@TerminalGravity

Copy link
Copy Markdown
Collaborator

First tool-level test suite — covers all 4 scoring dimensions, grade boundaries, feedback generation, and total calculation. Exports scorePrompt for testability. 60 tests passing (up from 43).

Adds a new export_timeline MCP tool that generates structured markdown
reports from timeline data. Includes:

- Summary stats (prompts, commits, corrections, errors, tool calls)
- Correction rate and avg events/day metrics
- Top tools breakdown
- Daily breakdown with commits, corrections, errors highlighted
- Collapsible prompt listings per day
- Optional save-to-file support
- Relative date parsing (7days, 2weeks, etc.)

Closes #5
- Export scorePrompt function for testability
- Test all 4 scoring dimensions (specificity, scope, actionability, done condition)
- Test grade boundaries (A+ for perfect, F for vague)
- Test feedback generation and total calculation
- 60 tests passing (up from 43)
@TerminalGravity

Copy link
Copy Markdown
Collaborator Author

17 tests for prompt_score — good to see the scoring logic locked down. CI green. ✅

@TerminalGravity

Copy link
Copy Markdown
Collaborator Author

Superseded by newer, more comprehensive test PRs.

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