Report timeouts with a TIMEOUT status instead of FAILED
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- testing-qa
调研方向
从 qtile/test/conftest.py 第 64-96 行中引用的实现开始,并将其 TIMEOUT 状态和内联计时与 pytest-timeout 的行为进行比较。跟踪 pytest-timeout 相关的入口点,并确定哪些测试可以证明超时的测试会与失败区分开来,并且会报告计时信息。
由索引模型根据 Issue 内容生成。
描述
I am the author of PR qtile/qtile#2331 and want to add pytest-timeout to the qtile test suite.
The change I made to the conftest.py was to implement a TIMEOUT status plus inline timings to make it more obvious which tests fail and which ones time out. Two of the maintainers commented that they'd rather prefer it to have this functionality built into pytest-timeout and I agreed. So my shot at it is here and we'd love to get some feedback if something like that could be added to pytest-timeout.
Example output, luckily without `TIMEOUT` or `FAILED (...)`:
test/test_bar.py::test_basic PASSED (0.001) [ 2%] test/test_bar.py::test_basic PASSED (0.116) [ 2%] test/test_bar.py::test_basic PASSED (0.036) [ 2%] test/test_bar.py::test_singlespacer PASSED (0.001) [ 2%] test/test_bar.py::test_singlespacer PASSED (0.114) [ 2%] test/test_bar.py::test_singlespacer PASSED (0.035) [ 2%] test/test_bar.py::test_nospacer PASSED (0.001) [ 2%] test/test_bar.py::test_nospacer PASSED (0.115) [ 2%] test/test_bar.py::test_nospacer PASSED (0.034) [ 2%] test/test_bar.py::test_configure_broken_widgets PASSED (0.001) [ 2%] test/test_bar.py::test_configure_broken_widgets PASSED (0.112) [ 2%] test/test_bar.py::test_configure_broken_widgets PASSED (0.039) [ 2%] test/test_bar.py::test_bar_hide_show_with_margin PASSED (0.001) [ 2%] test/test_bar.py::test_bar_hide_show_with_margin PASSED (0.207) [ 2%] test/test_bar.py::test_bar_hide_show_with_margin PASSED (0.035) [ 2%] test/test_check.py::test_check_default_config SKIPPED (needs mypy) [ 3%] test/test_check.py::test_check_default_config PASSED (0.000) [ 3%] test/test_check.py::test_check_bad_syntax SKIPPED (needs mypy) [ 3%] test/test_check.py::test_check_bad_syntax PASSED (0.000) [ 3%]
- 主要语言
- Python
- 星标
- 260
- 派生
- 69
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pytest-dev/pytest-timeout 的其他 Issue
-
PR #200 introduced breaking change - `timeout` value in config is incompatible with older versions可能已有人在做 @Sanjays2402 于 41 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
pytest-dev/pytest-timeout#203 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
pytest-dev/pytest-timeout#190 · 9 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
pytest-dev/pytest-timeout#189 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
pytest-dev/pytest-timeout#181 · 4 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 35/100
pytest-dev/pytest-timeout#178 · 1 条评论 ·
查看 pytest-dev/pytest-timeout 的全部 Issue
相似的 Issue
-
needs-human needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
gke-labs/kube-agents#2400 · 1 条评论 ·
维护者通常 1 天内回复
-
Device Details tables: FS/SF columns contradict each other (nfet_01v8 Vt row, pfet_01v8 Idsat row)未关闭
难度 2/5 1-3 小时 新手友好度 75/100
google/skywater-pdk#450 ·
-
Drained trajectory arrays are overwritten when the sequence buffer is reused可能已有人在做 @sylvesterkaczmarek 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
google-deepmind/bsuite#56 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
LearningCircuit/local-deep-research#7206 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
chingu-voyages/V62-tier3-team-33#285 ·
维护者通常 1 天内回复