caolan / caolan/nodeunit

Can I run only one method in a testcase?

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

描述

Test case example as follows (mytest.js):

exports["test1f"] = function(test){
test.expect(1);
test.ok(true, "this assertion should pass");
test.done();
};

exports["test2"] = function(test){
test.ok(true, "this assertion should pass");
test.done();
};

I hope that I can run test2 only like this:

nodeunit test.js test2

贡献指南

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

调研方向

从 issue 中显示的 nodeunit 命令开始,跟踪 mytest.js 测试函数的选择和运行方式。添加对所请求的 test2 参数的支持,然后验证该命令会运行 test2 而不运行 test1,同时现有的测试命令继续正常工作。

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

评估

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

把新 issue 发到你的邮箱

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