Suppress printing in tests

未关闭
#685 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
停滞
技术栈
r
领域
testing

调研方向

定位当前会打印消息的测试,并审查 #583 中的其他案例。确定每条消息应在其源头处理,还是使用 testthat::expect_message() 断言;完成的标准是,相关测试不再打印意外输出,同时仍检查预期消息。

由索引模型根据 Issue 内容生成。

描述

enhancement implementation-ready

Currently, a few tests print messages and #583 adds more tests that do that. It would be nicer to have those tests not print anything ideally by

  • addressing the reason they print something or
  • capturing the expected message using testthat::expect_message()

Just suppressing messages would be less ideal and we might want to go over existing tests that do that and change the way we handle that to one of the two options above.

主要语言
R
星标
65
派生
24
平均合并
1 小时 24 分钟
30 天内合并 PR
2

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

epiforecasts/scoringutils 的其他 Issue

查看 epiforecasts/scoringutils 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

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