如何在守夜人中运行单个测试 [英] How to run a single test in nightwatch
本文介绍了如何在守夜人中运行单个测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过以下测试仅运行Test 3
?
How do I run only Test 3
from the following tests?
module.exports = {
'Test 1':function(){},
'Test 2':function(){}
'Test 3':function(){}
}
推荐答案
已添加新参数-testcase 以运行指定的测试用例.
A new parameter --testcase has been added to run a specified testcase.
nightwatch.js --test tests\demo.js --testcase "Test 1"
这是自v0.6.0版以来的一项新功能
It's a new feature since the v0.6.0
https://github.com/beatfactor/nightwatch/releases/tag/v0.6.0
这篇关于如何在守夜人中运行单个测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文