Skip to content

test: add 18 tests for prompt_score scoring logic - #267

Open
TerminalGravity wants to merge 2 commits into
mainfrom
test/prompt-score-coverage
Open

test: add 18 tests for prompt_score scoring logic#267
TerminalGravity wants to merge 2 commits into
mainfrom
test/prompt-score-coverage

Conversation

@TerminalGravity

@TerminalGravity TerminalGravity commented Mar 16, 2026

Copy link
Copy Markdown
Collaborator

Adds comprehensive test coverage for the scorePrompt function — all four scoring dimensions, grade boundaries, feedback tips, and edge cases. Also exports scorePrompt for testability.

Changes:

  • Export scorePrompt from prompt-score.ts
  • New tests/tools/prompt-score.test.ts with 18 tests
  • All 65 tests pass ✅

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
TerminalGravity force-pushed the test/prompt-score-coverage branch from 0a66f8a to b820f7a Compare March 18, 2026 20:34
@TerminalGravity TerminalGravity changed the title test: add 14 tests for prompt_score tool test: add 18 tests for prompt_score scoring logic Mar 18, 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