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

Errors in improperly configured async tests getting swallowed #57

Open
davidgruar opened this issue Mar 14, 2018 · 0 comments
Open

Errors in improperly configured async tests getting swallowed #57

davidgruar opened this issue Mar 14, 2018 · 0 comments

Comments

@davidgruar
Copy link

The following test passes with no errors logged to the console:

@Test("This should be marked AsyncTest but isn't")
public async myTest() {
    await new Promise(resolve => setTimeout(resolve, 0));
    Expect(true).toBe(false);
}

If I run it through tap-xunit it also passes, but I do at least see a message in the console: (node:21288) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ExactMatchError: Expected true to be false. Can tap-bark do something similar?

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