Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling for suit visitor #99

Open
eudgen-dev opened this issue Mar 25, 2022 · 0 comments
Open

Error handling for suit visitor #99

eudgen-dev opened this issue Mar 25, 2022 · 0 comments

Comments

@eudgen-dev
Copy link

eudgen-dev commented Mar 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant