akiomik / akiomik/tears

Evaluate a render assertion helper for tests

未关闭
#330 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Rust
星标
9
派生
1
平均合并
11 小时 46 分钟
30 天内合并 PR
62

描述

## Summary

Evaluate and, if repeated boilerplate is demonstrated, add a small test helper for asserting rendered output.

`TestStore` covers state transitions and command effects, while `TestDriver` covers the production kernel. View assertions currently require tests to construct a ratatui `TestBackend`, render a frame, and inspect its buffer manually.

This should become public API only if examples or real applications show repeated setup that a stable helper can remove. A one-off convenience wrapper is not enough justification for another testing contract.

## Acceptance criteria

- [ ] Collect at least two representative call sites that repeat the same render setup.
- [ ] Decide whether a documentation recipe is sufficient or a helper materially improves the tests.
- [ ] If a helper is justified, keep it additive and thin over ratatui's `TestBackend` and buffer types.
- [ ] Cover terminal dimensions, repeated renders, and deterministic buffer assertions.
- [ ] Document whether the helper targets `Application`, `Program`, or both.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。