Title: Test Case is missing in report when It failed because of pytest worker crash · Issue #825 · allure-framework/allure-python · GitHub
Open Graph Title: Test Case is missing in report when It failed because of pytest worker crash · Issue #825 · allure-framework/allure-python
X Title: Test Case is missing in report when It failed because of pytest worker crash · Issue #825 · allure-framework/allure-python
Description: I'm submitting a ... [✓] bug report feature request support request => Please do not submit support request here, see note at the top of this template. What is the current behavior? In my Jenkins CI, we run Selenium automation using pyte...
Open Graph Description: I'm submitting a ... [✓] bug report feature request support request => Please do not submit support request here, see note at the top of this template. What is the current behavior? In my Jenkins C...
X Description: I'm submitting a ... [✓] bug report feature request support request => Please do not submit support request here, see note at the top of this template. What is the current behavior? In my Je...
Opengraph URL: https://github.com/allure-framework/allure-python/issues/825
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test Case is missing in report when It failed because of pytest worker crash","articleBody":"[//]: # (\r\n. Note: for support questions, please use Stackoverflow or Gitter**. \r\n. This repository's issues are reserved for feature requests and bug reports.\r\n.\r\n. In case of any problems with Allure Jenkins plugin** please use the following repository \r\n. to create an issue: https://github.com/jenkinsci/allure-plugin/issues\r\n.\r\n. Make sure you have a clear name for your issue. The name should start with a capital \r\n. letter and no dot is required in the end of the sentence. An example of good issue names:\r\n.\r\n. - The report is broken in IE11\r\n. - Add an ability to disable default plugins\r\n. - Support emoji in test descriptions\r\n)\r\n\r\n#### I'm submitting a ... \r\n - [✓] bug report\r\n - [ ] feature request\r\n - [ ] support request => Please do not submit support request here, see note at the top of this template.\r\n\r\n#### What is the current behavior?\r\nIn my Jenkins CI, we run Selenium automation using pytest with a Selenium Grid. Sometimes, the pytest worker crashes, causing the test case to fail with the status “FAILED”. When a test case fails due to a pytest worker crash, the failed test case is missing from the report\r\n\r\n#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem\r\n\r\n**Python Code to reproduce the Issue:**\r\n\r\nimport os\r\n\r\ndef test_simulate_crash():\r\n if os.environ.get(\"PYTEST_XDIST_WORKER\", None):\r\n os._exit(1) # This will crash the worker process\r\n assert True\r\n\r\ndef test_normal():\r\n assert True\r\n\r\n\r\n\r\n\r\n\r\n\r\n#### What is the expected behaviour?\r\n\r\nThe Failed Test Case ('test_simulate_crash' in the above code) should be shown in the allure report.\r\n\r\n For reference, I attached the HTML report where we could see the Failed Test Cases.\r\n\r\n#### What is the motivation / use case for changing the behavior?\r\n\r\n\r\n#### Please tell us about your environment:\r\n\r\n- Allure version: 2.29.0\r\n- Test framework: Python 3.9.6\r\n- Allure adaptor: allure-pytest-2.8.40\r\n\r\n#### Other information \r\nRelated ticket for pytest worker crash\r\nhttps://github.com/pytest-dev/pytest-xdist/issues/466\r\n\r\n[//]: # (\r\n. e.g. detailed explanation, stacktraces, related issues, suggestions \r\n. how to fix, links for us to have more context, eg. Stackoverflow, Gitter etc\r\n)\r\n","author":{"url":"https://github.com/chandra0714","@type":"Person","name":"chandra0714"},"datePublished":"2024-07-19T12:21:51Z","url":"https://github.com/allure-framework/allure-python/issues/825"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:db15dd8e-e26a-ad39-a3f4-9cae9b8c7c9d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B21C:2A7EC:9E849:DEB12:6AFD4A58 |
| html-safe-nonce | a956461c733a23a308652919f107e9161487ef0d2a4df58786e6bd6a171094c6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjFDOjJBN0VDOjlFODQ5OkRFQjEyOjZBRkQ0QTU4IiwidmlzaXRvcl9pZCI6IjQwNzE1NjkwOTIxOTkxMzk5MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 58dc57964bdacd81a7816047ef064826424f110688080ce8188f8b30717a2751 |
| hovercard-subject-tag | issue:2418759820 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/allure-framework/allure-python/825/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b2e412c570e7cb14fb67058dd22ca436294f9ff092339843e706f1ca2d9ca82/allure-framework/allure-python/issues/825 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b2e412c570e7cb14fb67058dd22ca436294f9ff092339843e706f1ca2d9ca82/allure-framework/allure-python/issues/825 |
| og:image:alt | I'm submitting a ... [✓] bug report feature request support request => Please do not submit support request here, see note at the top of this template. What is the current behavior? In my Jenkins C... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chandra0714 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/allure-framework/allure-python git https://github.com/allure-framework/allure-python.git |
| octolytics-dimension-user_id | 5879127 |
| octolytics-dimension-user_login | allure-framework |
| octolytics-dimension-repository_id | 79346720 |
| octolytics-dimension-repository_nwo | allure-framework/allure-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 79346720 |
| octolytics-dimension-repository_network_root_nwo | allure-framework/allure-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width