test: add 18 tests for prompt_score scoring logic - #267
Open
TerminalGravity wants to merge 2 commits into
Open
Conversation
Adds a new export_timeline MCP tool that generates formatted markdown reports from timeline data, including: - Summary statistics (events, prompts, commits, errors) - Quality indicators (correction rate, error rate, events/day) - Daily breakdowns with chronological event listings - Support for relative date ranges (7days, 2weeks, etc.) - Scope filtering (current/related/all projects) Includes 4 tests covering registration, empty state, report generation with stats, and relative date parsing. Closes #5
Export scorePrompt function and add comprehensive test coverage for all four scoring dimensions (specificity, scope, actionability, done-condition), grade calculation, feedback generation, and edge cases.
TerminalGravity
force-pushed
the
test/prompt-score-coverage
branch
from
March 18, 2026 20:34
0a66f8a to
b820f7a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds comprehensive test coverage for the
scorePromptfunction — all four scoring dimensions, grade boundaries, feedback tips, and edge cases. Also exportsscorePromptfor testability.Changes:
scorePromptfromprompt-score.tstests/tools/prompt-score.test.tswith 18 tests