-
Notifications
You must be signed in to change notification settings - Fork 236
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
How to see total tests passed in the summary in pytest-html version 4.1.1 if only failed tests are shown in the summary table #794
Comments
Hi Can someone point me that something is wrong in pytest-html version or I am doing something wrong? |
Can you provide us with your actual test code, and how you run them (i.e. what command line options, etc.)? It's a lot easier to troubleshoot if there is a way of reproducing the issue. |
I have provided already everything here #793 (reply in thread) Please take a look. The test code which I am running is provided Repeating everything again here The Source code file name is test_login.py under folder test_cases
I have downloaded the html pytest version 4.1.1 This is the hook I am using to remove the passed tests from the results table. This hook is passed in Conftest.py file def pytest_html_results_table_row(report, cells): This is the command I am passing Pytest is collecting 2 tests and this is the terminal output. 1 failed, 1 passed
and this is the output I got. It doesn't show the count of passed tests. This is pytest.ini file content [pytest] Just wondering what else could be needed to reproduce or I am misunderstanding something? and I was expecting to have result like this so that even though passed tests are removed from the results table, but I would like to still see the total count of tests executed and how many have passed. Something like we have in version 3.2.0 |
Discussed in #793
Originally posted by bhawna0612 January 19, 2024
Hi I upgraded pytest-html version from v3.2.0 to v4.1.1 and I am showing only failed tests in the table.
But in the latest version, it doesn't show the total tests ran, passed count etc. It only shows the failed tests count and duration.
Please see the images for better understanding. I ran the same test suite and different report type is generated.
V3.2.0 is providing more clear picture
V3.2.0
V4.1.1
2 tests didn't take 6 mins 25 sec. 13 tests took that much time which is comparable with 386.78 seconds mentioned in v3.2.0
How to achieve the same type of report as in v3.2.0?
For reference I am using this hook
The text was updated successfully, but these errors were encountered: