How to run a single test in nightwatch

后端 未结 6 1448
野的像风
野的像风 2021-02-01 02:13

How do I run only Test 3 from the following tests?

module.exports = {
  \'Test 1\':function(){},
  \'Test 2\':function(){}
  \'Test 3\':function(){}         


        
6条回答
  •  心在旅途
    2021-02-01 02:41

    A new parameter --testcase has been added to run a specified testcase.

    nightwatch.js --test tests\demo.js --testcase "Test 1"
    

    It's a new feature since the v0.6.0

    https://github.com/beatfactor/nightwatch/releases/tag/v0.6.0

提交回复
热议问题