Title: Allure step in thread (fixes #563) by nigredon1991 · Pull Request #605 · allure-framework/allure-python · GitHub
Open Graph Title: Allure step in thread (fixes #563) by nigredon1991 · Pull Request #605 · allure-framework/allure-python
X Title: Allure step in thread (fixes #563) by nigredon1991 · Pull Request #605 · allure-framework/allure-python
Description: Test for example with thread: from concurrent.futures import ThreadPoolExecutor import allure import pytest @allure.step("lala") def lala(x=1): print(f"run {x}") return 1 @allure.step("test") def test_lala(): with allure.step("Start in thread"): with ThreadPoolExecutor(max_workers=2) as executor: f_result = executor.map(lala, [1, 2]) print(list(f_result)) Without this request allure report looks like this: And with this request report looks like this: In the request, the generation of the report has been corrected if threads are created during the launch process. Each step now remembers its parent, even if it was launched in a thread. Context Fix for #563 Checklist Sign Allure CLA Provide unit tests
Open Graph Description: Test for example with thread: from concurrent.futures import ThreadPoolExecutor import allure import pytest @allure.step("lala") def lala(x=1): print(f"run {x}") return...
X Description: Test for example with thread: from concurrent.futures import ThreadPoolExecutor import allure import pytest @allure.step("lala") def lala(x=1): print(f"run {x}&q...
Opengraph URL: https://github.com/allure-framework/allure-python/pull/605
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5eb5004c-1d2c-ae29-df14-bf2e035cb20a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C7BA:185C62:3262BF:46B7C0:696F7F51 |
| html-safe-nonce | 437ee49d87922c0f024dd97c4389a654a1164e9a96199fe3fad60aaf34725344 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0JBOjE4NUM2MjozMjYyQkY6NDZCN0MwOjY5NkY3RjUxIiwidmlzaXRvcl9pZCI6IjI4NjUyODQ4MzA4MjE1ODA2MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3748332574e710d0988ef191c0811b91d0bc0b7585be96c0c58a9cb0e7a9cb31 |
| hovercard-subject-tag | pull_request:681637351 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/allure-framework/allure-python/pull/605/files |
| twitter:image | https://avatars.githubusercontent.com/u/7298146?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7298146?s=400&v=4 |
| og:image:alt | Test for example with thread: from concurrent.futures import ThreadPoolExecutor import allure import pytest @allure.step("lala") def lala(x=1): print(f"run {x}") return... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 759c36b32159cc867ba926786bbd5ac69b0804c9cfc86536a67b3567e8bbbb5c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08632b85cc9aa97742e56978eb25cc43ca37e51b |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width