Skip subsequent Mocha tests from spec if one fails

前端 未结 1 1072
Happy的楠姐
Happy的楠姐 2020-12-14 13:52

I can\'t find a way how to stop some part of it\'s from run if one of them failed

I\'m using mocha-as-promised, so the code might look diff

1条回答
  •  既然无缘
    2020-12-14 14:28

    Mocha supports bailing after the first test failure, is that what you want?

    From mocha --help:

    -b, --bail                      bail after first test failure
    

    0 讨论(0)
提交回复
热议问题