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

Bug: Cucumber HTML reporter does not show errors from AfterAll hook #253

Open
vitalets opened this issue Dec 12, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@vitalets
Copy link
Owner

Given
AfterAll hook that throws an error:

AfterAll(async () => {
  throw new Error('foo');
});

When

  1. run tests
  2. open Cucumber HTML report

Then
All tests are marked as passed, no error displayed.

But I expect
Global error is displayed in HTML reporter.

Additional
Playwright run itself is failing, error is shown in terminal and Playwright HTML reporter.
The problem is only with Cucumber HTML reporter. Opened a separate issue there: cucumber/html-formatter#340

Environment

platform: darwin
node: v20.11.1
playwright-bdd: v7.5.0
@playwright/test: v1.49.1
@cucumber/cucumber: none
Playwright config file: playwright.config.ts
@vitalets vitalets added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant