Stop jasmine test after first expect fails

前端 未结 3 949
春和景丽
春和景丽 2020-12-01 21:14

I\'m familiar with python unittest tests where if an assertion fails, that test is marked as \"failed\" and it moves on to other tests. Jasmine on the other hand will contin

3条回答
  •  醉酒成梦
    2020-12-01 21:30

    According to the comments of https://github.com/jasmine/jasmine/issues/414 I figured out that 2 solutions exists for this: https://github.com/radialanalytics/protractor-jasmine2-fail-whale https://github.com/Updater/jasmine-fail-fast

    I just started to use the protractor-jasmine2-fail-whale because it seems to have more features. Although to take screenshots in case of test failures I currently use protractor-jasmine2-html-reporter.

提交回复
热议问题