Is there a way to quit the entire test suite if a condition is met in the @BeforeSuite annotation? Maybe a way to call the @AfterSuite and bypass the entire test?
I make a database call in the @BeforeSuite. If the query returns any results, I send an email and now am wanting to kill the entire test suite.
I have tried
org.testng.Assert.fail("There are unpaid invoices");
new SkipException("message"); this will skip the tests if the provided condition is not true.