How to stop Jasmine if any assertion fails

161 views
Skip to first unread message

Hariprasath Periyasamy

unread,
Aug 4, 2017, 11:50:10 AM8/4/17
to Jasmine
How to stop Jasmine if any assertion fails

Gregg Van Hove

unread,
Aug 4, 2017, 1:01:52 PM8/4/17
to jasmi...@googlegroups.com
Jasmine does not currently support stopping execution of the entire suite after the first spec that fails. There is an open issue for this: https://github.com/jasmine/jasmine/issues/414

There is an option to cause each spec to stop after an assertion fails ("stop spec on expectation failure") which will cause you to only get a single failure per spec.

Hope this helps. Thanks for using Jasmine!

- Gregg

On Thu, Jul 27, 2017 at 7:37 AM, Hariprasath Periyasamy <hariprasath...@gmail.com> wrote:
How to stop Jasmine if any assertion fails

--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+unsubscribe@googlegroups.com.
To post to this group, send email to jasmi...@googlegroups.com.
Visit this group at https://groups.google.com/group/jasmine-js.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages