Codex Dart logd Tests for Standard and Pooled Output
Test Dart logd formatting, decoration or rendering with deterministic fixtures and parity across standard and pooled paths.
中文Install in Codex
Open logd in Codex with package:test, project parity helpers and the intended output format for the scenario.
- Review `.agents/skills/dart-add-unit-test/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.agents/skills/dart-add-unit-test/` in your project and save the reviewed file as `.agents/skills/dart-add-unit-test/SKILL.md`.
- Start Codex from that project's root, then type `$dart-add-unit-test` and select the matching skill.
Example task
Design a parity test for this illustrative format and these two execution modes.
{"time":"2030-01-02T10:00:00Z","message":"ready","mode":["standard","pooled"],"expected":"10:00 ready"}What to check
Fix the clock and assert that both `standard` and `pooled` produce `10:00 ready`. Use the project parity helper and dispose the logger during cleanup.
Original SKILL.md on GitHub · Updated
Frequently asked question
Why should test logs use a fixed timestamp?
Fixed time, process names and other environmental inputs keep the result focused on formatting behavior.