Skip to content

test: add a real Lambda Feedback export as test data - #40

Merged
peterbjohnson merged 1 commit into
mainfrom
fixtures/real-exports
Sep 15, 2026
Merged

peterbjohnson merged 1 commit into
mainfrom
fixtures/real-exports

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

Adds one real question set exactly as Lambda Feedback exported it, so in2lambda can be tested against what the platform actually produces rather than against its own templates.

What's in it

  • tests/fixtures/exports/me2_introduction/: the ME2 Introduction set (six questions and three images), byte-for-byte as exported. It covers symbolic, numeric-with-units and multiple-choice answer boxes, feedback cases, text between answer boxes, and worked solutions split into steps.
  • tests/fixtures/exports/README.md: a short description of the export's JSON, checked against these files. Further exports go in as sibling folders.
  • .pre-commit-config.yaml: excludes the exports. The JSON formatter and whitespace hooks would otherwise rewrite them on commit, and they'd stop being real exports.

What's not in it

No test code. Using this data is the job of the next change: a harness that loads every export here, writes it back and compares, and that picks up a new export without any code change.

🤖 Generated with Claude Code

Add the ME2 Introduction question set exactly as Lambda Feedback exported
it, with a short description of the export's JSON, so the suite can be
checked against what the platform really produces. Further exports are
added as sibling folders.

Exclude the exports from pre-commit: its JSON formatter and whitespace
hooks would otherwise rewrite them and they would stop being real exports.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@peterbjohnson
peterbjohnson merged commit 8d4832f into main Sep 15, 2026
4 checks passed
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