TestyTs icon indicating copy to clipboard operation
TestyTs copied to clipboard

Error handling for suit visitor

Open eudgen-dev opened this issue 2 years ago • 0 comments

Hi,

Please add error handling for @BeforeAll, @AfterAll, @BeforeEach, @AfterEach methods

Version: 2.0.0-beta.7

ex:

@TestSuite()
export class TestSuit {
  @BeforeAll()
  async beforeAll() {
    throw new Error('Some error');
  }

  @Test()
  public test() {
    ok(true);
  }
}

The output is:

Root TestSuit Summary: 0/1 passed, 1/1 failed, 0/1 skipped. (0s)

There are any info about the exception

eudgen-dev avatar Mar 25 '22 15:03 eudgen-dev