How to run a single test in nightwatch

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

    For me, it only works with:

    npm run test -- tests/01_login.js --testcase "Should login into Dashboard"
    
    npm run 
    
                                     
                  
提交回复
热议问题