Hi
I have a Mocha test which performs multiple validation in a test. Something like this
test.it('multiple validation', function ()
{
check condition 1, if failed still want to go to next line
check condition 2
}
If I use Mocha assert or Chai assert on condition 1, if the assertion fails, it'll stop the execution and doesn't attempt to check condition 2.
If I catch the error thrown by check condition 1, then mocha doesn't know that the test fail.
So in summary:
Is there a call\or assertion library I can use to fail the mocha test without stopping the execution?
Thank you in advance for helps