Skip to content

Add tests for always-empty columns fix and variableMeasured completeness#49

Open
htsukamoto5 wants to merge 3 commits into
mainfrom
test/csv-completeness-variableMeasured
Open

Add tests for always-empty columns fix and variableMeasured completeness#49
htsukamoto5 wants to merge 3 commits into
mainfrom
test/csv-completeness-variableMeasured

Conversation

@htsukamoto5
Copy link
Copy Markdown
Contributor

Summary

  • Adds 3 targeted tests for the always-empty columns fix (PR Detect and expand JSON-serialized nested columns #46): all-empty column, null-string column, and partially-empty column that should resolve to a real type
  • Adds 3 completeness tests asserting that every CSV header appears in variableMeasured after generate(): baseline (all columns populated), one always-empty column, and a sparse/multi-trial-type CSV

Depends on PR #46 — this branch is built on top of fix/always-empty-columns-variableMeasured. Plan is to merge #46 first, rebase this branch onto main, verify tests pass, then merge.

Test plan

🤖 Generated with Claude Code

htsukamoto5 and others added 2 commits May 29, 2026 14:35
Three cases: all columns populated (baseline), one always-empty column,
and a sparse CSV with different trial types populating different columns.
Each test asserts that every column header appears in variableMeasured.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add comment to csvColumnNames noting the no-quoted-commas assumption
- Add baseline comment to the all-columns-populated test clarifying intent
- Assert description:"unknown" on always-empty column to pin getList() serialization
- Add comment explaining why JSON input is not tested (non-rectangular structure is a separate issue)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 1, 2026

🦋 Changeset detected

Latest commit: 43f7504

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@jspsych/metadata Patch
frontend Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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