Skip to content

feat(test): LLM test harness with flexible assertions + snapshot testing#1

Open
lucasven wants to merge 1 commit intoHanake0:mainfrom
lucasven:feat/test-harness
Open

feat(test): LLM test harness with flexible assertions + snapshot testing#1
lucasven wants to merge 1 commit intoHanake0:mainfrom
lucasven:feat/test-harness

Conversation

@lucasven
Copy link
Copy Markdown

@lucasven lucasven commented Mar 23, 2026

What

Testing framework for LLM features with assertions designed for non-deterministic
AI outputs and snapshot-based regression testing.

Features

  • Flexible assertions: Did it call tool X? Under Y tokens? Contains keyword?
    Response time < Z ms?
  • Snapshot testing: Save LLM output, human approves baseline, future runs
    compare against approved snapshot
  • xUnit integration: Works with existing test infrastructure, custom attributes

Files

  • Lis.Tests/Harness/ — assertion helpers, snapshot manager, test base class
  • Example tests demonstrating usage patterns
  • Documentation for adding new LLM test cases

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lucasven lucasven changed the title feat(memory): post-conversation extraction + relevance decay feat(test): LLM test harness with flexible assertions + snapshot testing Mar 23, 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