nodeSolidServer / nodeSolidServer/node-solid-server
Assertions in async callbacks will not mark tests as failed
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.8k
- 派生
- 308
- PR 合并指标
- 30 天内没有已合并 PR
描述
Looking through the tests for NSS I see some that don't appear to actually achieve anything (unless I'm missing something).
Some of them have been marked to skip, which is fair enough.
For example:
https://github.com/solid/node-solid-server/blob/master/test/integration/ldp-test.js#L178
https://github.com/solid/node-solid-server/blob/master/test/integration/ldp-test.js#L199
https://github.com/solid/node-solid-server/blob/master/test/integration/ldp-test.js#L214
https://github.com/solid/node-solid-server/blob/master/test/integration/ldp-test.js#L326 (This one isn't skipped)
If they're in tests like that, there could be a possibility that it's leaked into NSS itself as well.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读 test/integration/ldp-test.js 第 178、199、214 和 326 行的异步测试用例。检查其回调中的断言是如何处理的,然后检查相关的 NSS 测试代码是否存在相同的模式。完成的标准是受影响的测试能够可靠地报告断言失败,而不是静默通过。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- testing-qa
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100