How to run a single test in nightwatch

后端 未结 6 1437
野的像风
野的像风 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:32

    Another possible way of doing so, would be to use the following on each test case that you want to omit:

    '@disabled': true,
    

    This can simply be set to false or removed if you wish to test it.

提交回复
热议问题