Skip to content

Test what Stryker showed nothing catching, drop round-trip tests - #14

Open
SebHenn wants to merge 1 commit into
masterfrom
test/mutation-gaps
Open

SebHenn wants to merge 1 commit into
masterfrom
test/mutation-gaps

Conversation

@SebHenn

@SebHenn SebHenn commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Stryker left a few behaviours with no test that would fail if they broke. This adds those and removes tests that pinned nothing.

Added

  • Change tracker re-attach: after a second attach, editing a project, task, column, step or new project raises Changed exactly once each. Before this, a tracker that remembered its old models would skip them and autosave would silently stop. Also covers checklists that arrive pre-filled and columns added after attach.
  • Import names: an import never reuses a project name, whether it clashes with the store or with another project in the same file.
  • CSV export: each task's state lands under its own header.
  • Saved priority names: loads "Priority": "High" from JSON, so dropping the string converter fails here instead of on every existing store.

Removed
Serialize-then-deserialize round-trip tests. They pass for any serializer. The legacy-JSON default checks they contained moved into ModelTests.

Verification
dotnet test on top of master with #13 merged: 429 passed, 0 failed.

🤖 Generated with Claude Code

Mutation testing left these behaviours unguarded:

- Re-attaching the change tracker must forget the models it hooked, or
  edits to them stop autosaving without an error. The test now edits a
  project, task, column, step and new project after a second attach and
  expects exactly one change each; it also covers checklists that arrive
  pre-filled and columns added later.
- Import never reuses a project name, whether the clash is with the store
  or with another project in the same file.
- CSV export puts each task's state under its own header.
- Stores on disk spell priority as a name; the test loads one, so losing
  the string converter fails here instead of on every existing store.

Removed the serialize-then-deserialize round-trip tests: they pass for
any serializer and pinned nothing. Legacy-JSON defaults stay covered.

Co-Authored-By: Claude Opus 5.5 <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