Skip to content

Error handling for suit visitor #99

Description

@eudgen-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions