How to avoid the Unhandled Exception in Nunit 3
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 30/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- csharp
- 领域
- testing-qa
调研方向
从 Process.Start 调用和所引用的 NUnit 文档 issue 193 开始,然后检查 NUnit 3 如何处理引发 DirectoryNotFoundException 的子进程。记录如何防止测试挂起,并使失败报告成为一条可执行的消息;文档应涵盖此处所描述的 Net45 Windows 环境。
由索引模型根据 Issue 内容生成。
描述
In Nunit 3, window environment, Net45
I run process in a unit test that access a folder not exist:
Process.Start("process.exe")
The test hang due to 'Unhandled Exception: System.IO.DirectoryNotFoundException: ' and the popup window appear: close the program /debug the program.
Even i try to catch the exception, but i can't.
I read this but it can't help.
How to avoid the Unhandled Exception.
It's best the test fail with a message, not hanging.
- 主要语言
- Dockerfile
- 星标
- 601
- 派生
- 159
- 平均合并
- 22 小时 18 分钟
- 30 天内合并 PR
- 6
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nunit/docs 的其他 Issue
-
area:adapter type:newpage
难度 2/5 1-3 小时 新手友好度 82/100
-
Document why output from ASP.NET Core handlers (WebApplicationFactory) is not captured, and the workarounds可能已有人在做 @SeanKilleen 于 36 天前认领。 未关闭area:framework type:update
难度 2/5 1-3 小时 新手友好度 83/100
-
type:newpage
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 3/5 1-2 天 新手友好度 15/100
-
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
elecnix/bellwether#467 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
storytold/craft-libs#4547 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
mike-north/AgentMonitors#715 ·
维护者通常 1 天内回复
-
milestone-3
难度 2/5 1-3 小时 新手友好度 78/100
Harsha0912/recall#71 ·
维护者通常 1 天内回复
-
bug:new
难度 2/5 1-3 小时 新手友好度 69/100
callstackincubator/simlock#1986 ·
维护者通常 1 天内回复