dew/.project/kanban/done/DEW-0024.md
Chris Hendrickson 49c6e995a8 fix: tolerate non-string YAML list elements when parsing tickets
YAML values like '1.0' (unquoted) parse as double, not String.
Changed parseStringList to use string interpolation ('$e') instead
of 'e as String', so numeric YAML scalars in labels/milestones
don't crash ticket parsing.

Also quote all '1.0' label values in existing ticket files so they
are unambiguously strings in YAML.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-25 16:05:01 -04:00

22 lines
757 B
Markdown

---
id: DEW-0024
title: Add CLI package smoke tests
type: task
created: 2026-04-25T19:53:00.484523Z
milestones:
- 1.0.0
labels:
- 1.0
- tests
---
packages/cli has no tests at all. Add packages/cli/test/cli_test.dart with:
1. Smoke test: CommandRunner instantiates without throwing
2. Help output: running with `--help` exits 0 and output contains 'kanban', 'init', 'mcp'
3. Version: running with `--version` exits 0 and output matches version in pubspec.yaml
4. Unknown command: running with an unknown subcommand exits non-zero
Use dart:io Process.run to invoke `dart run packages/cli/bin/dew.dart` with appropriate args, or instantiate the runner directly if that's cleaner.
Also add a `test` script to packages/cli/pubspec.yaml if not present.