Title: Support python subtests and show failures of subtests in the report · Issue #374 · allure-framework/allure-python · GitHub
Open Graph Title: Support python subtests and show failures of subtests in the report · Issue #374 · allure-framework/allure-python
X Title: Support python subtests and show failures of subtests in the report · Issue #374 · allure-framework/allure-python
Description: I'm submitting a ... feature request What is the current behavior? I'm using soft asserts in my tests. I've implemented those using the subTest python lib. Example: def __soft_assert_equal(self, a, b, msg): with self.subTest(): self.asse...
Open Graph Description: I'm submitting a ... feature request What is the current behavior? I'm using soft asserts in my tests. I've implemented those using the subTest python lib. Example: def __soft_assert_equal(self, a,...
X Description: I'm submitting a ... feature request What is the current behavior? I'm using soft asserts in my tests. I've implemented those using the subTest python lib. Example: def __soft_assert_eq...
Opengraph URL: https://github.com/allure-framework/allure-python/issues/374
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support python subtests and show failures of subtests in the report","articleBody":"#### I'm submitting a ... \r\n - [x] feature request\r\n\r\n#### What is the current behavior?\r\nI'm using soft asserts in my tests. I've implemented those using the subTest python lib.\r\nExample:\r\n```\r\n def __soft_assert_equal(self, a, b, msg):\r\n with self.subTest():\r\n self.assertEqual(a, b, msg)\r\n```\r\nThis way if a soft assert fails the tests scripts will go on and execute the next asserts.\r\nI'm running the tests with pytest and using this plugin to show the soft assert failures in the pytest output https://github.com/pytest-dev/pytest-subtests.\r\n\r\nHowever the Allure reports do not show the failures from the subTest and show the test as passed. \r\nCould this be implemented, so Allure reports will show if a assert from a subTest has failed and fail the test in that case? Thanks\r\n\r\n\r\n#### Please tell us about your environment:\r\n\r\n- Allure version: 2.11.0\r\n- Test framework: Python 3.7.3, pytest-4.4.1\r\n- Allure adaptor: allure-pytest-2.6.2","author":{"url":"https://github.com/fbarbu15","@type":"Person","name":"fbarbu15"},"datePublished":"2019-05-09T07:52:09Z","url":"https://github.com/allure-framework/allure-python/issues/374"}
| 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:9005cc50-746c-efaa-c506-4ecbe3008df5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B36C:37EB8F:26E3556:365536C:6AFD4D04 |
| html-safe-nonce | 8ffeba6c3294867908ea975f3040a2abc1c5c0481bc0b067bee23ffda6ff170d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzZDOjM3RUI4RjoyNkUzNTU2OjM2NTUzNkM6NkFGRDREMDQiLCJ2aXNpdG9yX2lkIjoiOTAwNTcyMjg3ODcwNzg0NjQwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e3ae44096b8cb00d1ff5c8efed3b66ceb3903b475b20d3ad3136a4eac8775415 |
| hovercard-subject-tag | issue:442098520 |
| 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/374/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d008e6d630e4bb80a1337c2b123fce37c5147a07f46e7c2cc07e41d45400e9e0/allure-framework/allure-python/issues/374 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d008e6d630e4bb80a1337c2b123fce37c5147a07f46e7c2cc07e41d45400e9e0/allure-framework/allure-python/issues/374 |
| og:image:alt | I'm submitting a ... feature request What is the current behavior? I'm using soft asserts in my tests. I've implemented those using the subTest python lib. Example: def __soft_assert_equal(self, a,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fbarbu15 |
| 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