Story: Test coverage and FK-aware generators

Table of Contents

This page documents a story in Sprint 12. It captures the goal, current status, acceptance criteria, and the tasks that compose it.

Goal

Bring coverage back over 50%, fix the FK-dangling-references issue in generators, re-enable the skipped tests, expand coverage of the xsdcpp-generated ORE types, and fix the accounts-dialog off-by-one.

Status

Field Value
State DONE
Parent sprint Sprint 12
Now Completed 2026-02-11.
Waiting on None.
Next None.
Last touched 2026-02-11

Acceptance

  • Coverage above 50%.
  • FK-aware generators produce valid test data.
  • Skipped-test count drops 25 → 6.
  • ORE XML round-trip tests cover 9 domain types.
  • Accounts dialog off-by-one fixed; pattern documented.

Tasks

Task State Start End Description
Improve code coverage DONE 2026-05-19 2026-02-10 Coverage dipped below 50%; add ~110 new test cases (~1900 lines) across CLI parsers, DQ generators, IAM authorization, refdata generators, synthetic data, logging utilities.
Improve generators with FK-aware test data DONE 2026-05-19 2026-02-11 Generators for entities with FK UUID columns no longer produce dangling references; KVP-based generation context proposed.
Enable all skipped tests DONE 2026-05-19 2026-02-11 19 previously skipped tests now active across DQ + IAM; skip count from 25 to 6 (only tenant RLS tests remain).
Expand unit test coverage for ORE codegened types DONE 2026-05-19 2026-02-11 XML round-trip tests for 9 ORE domain types; file I/O round-trip tests; xsdcpp substitution-group support landed. Adds read_system_party path.
Fix off-by-one in accounts dialog DONE 2026-05-19 2026-02-10 Account list view off-by-one after AccountType column added; public Column enum + delegate refactor; documented in qt-entity-creator skill.

Decisions

Generation context KVP
the FK-aware-generator story plants the seed for the bigger audit-trail-and-system-account refactor.
Type-safe column enums
the accounts off-by-one fix establishes the public-Column-enum pattern for delegates.

Out of scope

  • Restoring tenant-RLS-test SKIPs — different problem domain.

See also

None.

Emacs 29.1 (Org mode 9.6.6)