Problem
CLI and NAPI boundaries lack explicit coverage for:
-
CLI boundary — JSON special-char escaping test
- Location:
crates/mds-cli/tests/
- Core escaping is tested at serde layer; this pins round-trip at CLI boundary
-
NAPI boundary — role injection and validation test
- Location:
crates/mds-napi/__test__/
- Vars marshaling via
parse_compile_opts with dynamic role evaluation needs explicit coverage
Root Cause
Core escaping and role validation are covered by evaluator unit tests + napi spec, but explicit boundary tests for the full I/O stack are missing.
Solution
Add targeted integration tests:
- CLI: test JSON output with special characters (quotes, newlines, Unicode) round-tripping through stdout capture
- NAPI: test role injection via
vars with dynamic evaluation at binding layer
Priority
Low — Core functionality is serde-tested and verified. Nice-to-have hardening pass.
Related
Problem
CLI and NAPI boundaries lack explicit coverage for:
CLI boundary — JSON special-char escaping test
crates/mds-cli/tests/NAPI boundary — role injection and validation test
crates/mds-napi/__test__/parse_compile_optswith dynamic role evaluation needs explicit coverageRoot Cause
Core escaping and role validation are covered by evaluator unit tests + napi spec, but explicit boundary tests for the full I/O stack are missing.
Solution
Add targeted integration tests:
varswith dynamic evaluation at binding layerPriority
Low — Core functionality is serde-tested and verified. Nice-to-have hardening pass.
Related