Content-Length: 230165 | pFad | http://github.com/Codeception/Codeception/issues/6759

1F Show errors in HTML Test report filtering bar · Issue #6759 · Codeception/Codeception · GitHub
Skip to content

Show errors in HTML Test report filtering bar #6759

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

Open
sem-peters opened this issue May 17, 2024 · 1 comment
Open

Show errors in HTML Test report filtering bar #6759

sem-peters opened this issue May 17, 2024 · 1 comment

Comments

@sem-peters
Copy link

What are you trying to achieve?

I am viewing my HTML Test Report. The test has failed because of an Exception in the VisualCeption module, which throws an error instead of a 'test failure'. I expect the filtering toolbar to reflect the fact that there has been a failure / error.

What do you get instead?

The filtering toolbar can be used to only show failures, which includes both failures and errors. But, only the failures are counted towards the total.

image

Details

  • Codeception version: 5.0.12 (the same is also present in 5.1.0)
  • PHP Version: 8.1.27
  • Operating System: Debian (Codeception Docker image)
  • Installation type: Composer

I have omitted the application suite and the composer show, as they don't seem relevant.

@sem-peters
Copy link
Author

I would argue that there are a few possible fixes for this, and I honestly don't really care which way it's solved:

  • Simply add the total amount of errors to the total amount of failures in the filtering bar.
  • Add a separate 'errors' count, and make sure that the filtering behavior is changed so that failures don't include errors, and errors don't include failures.

It seems to me that the relevant files to change are the following:

  • HtmlReporter.php
  • scenarios.html.dist

I'm happy to implement a change for this myself if any maintainers could chip in on what they think is best.

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Codeception/Codeception/issues/6759

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy