caolan / caolan/nodeunit

How can I control the order my test are run in?

未关闭
#116 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
1.9k
派生
359
PR 合并指标
30 天内没有已合并 PR

描述

Test run in a random order. With the code bellow test/test1.js is not always run before test/test2.js.

```
var reporter = require('nodeunit').reporters.default;
reporter.run(['test/test1.js','test/test2.js']);
```

Is there a work around?

贡献指南

这个仓库没有索引到贡献指南

调研方向

从提供的 nodeunit 示例中的 reporter.run 开始,使用 test/test1.js 和 test/test2.js 重现该行为。阅读 reporter 的测试文件执行路径,并验证请求的顺序是否始终得到保留,然后运行相关测试套件以确认该行为。

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

评估

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

把新 issue 发到你的邮箱

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