Title: Add allure-pytest-log plugin for capture stdout content and attach to each step/test/fixture in report by wuhuizuo · Pull Request #263 · allure-framework/allure-python · GitHub
Open Graph Title: Add allure-pytest-log plugin for capture stdout content and attach to each step/test/fixture in report by wuhuizuo · Pull Request #263 · allure-framework/allure-python
X Title: Add allure-pytest-log plugin for capture stdout content and attach to each step/test/fixture in report by wuhuizuo · Pull Request #263 · allure-framework/allure-python
Description: //: # ( . Thank you so much for sending us a pull request! . . Make sure you have a clear name for your pull request. . The name should start with a capital letter and no dot is required in the end of the sentence. . To link the request with isses use the following notation: (fixes #123, fixes #321) . . An example of good pull request names: . - Add Russian translation (fixes #123) . - Add an ability to disable default plugins . - Support emoji in test descriptions ) Context Add pytest plugin: allure-pytest-log for capture stdout content and attach to allure report. example: # file: tests/test_hello.py import allure import time import pytest @pytest.fixture(scope='function') def hello(): time.sleep(1) print('hello') time.sleep(1) allure.attach('attach in fixture:hello', name='manual attach in fixture') return 'hello' class TestXxx(object): class TestYyy(object): def test_with_steps(self, hello): with allure.step('step1'): print('step1') with allure.step('step2'): print('step2') with allure.step('step3'): print('step3') print(hello) After you have installed pip: pytest-allure-log, you can run with: pytest -s --allure-capture --alluredir=reports Checklist Sign Allure CLA Provide unit tests
Open Graph Description: //: # ( . Thank you so much for sending us a pull request! . . Make sure you have a clear name for your pull request. . The name should start with a capital letter and no dot is required in the end...
X Description: //: # ( . Thank you so much for sending us a pull request! . . Make sure you have a clear name for your pull request. . The name should start with a capital letter and no dot is required in the end...
Opengraph URL: https://github.com/allure-framework/allure-python/pull/263
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:755a40f8-ee24-0ad7-ca1f-b386708a88d8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D7E8:330F09:EF53E4:14D62E2:6970C328 |
| html-safe-nonce | 6387a69318ba5d250fe291afd042eac4e30efd9401844562bd0740860f59f532 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0U4OjMzMEYwOTpFRjUzRTQ6MTRENjJFMjo2OTcwQzMyOCIsInZpc2l0b3JfaWQiOiI2OTI1MjM0NTcwMTA2MjkwOTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99286416d27321cbaeb72dad7f0191696fec9a7cd3126a29c7695385ff81bc20 |
| hovercard-subject-tag | pull_request:198934394 |
| 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/263/files |
| twitter:image | https://avatars.githubusercontent.com/u/2574558?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2574558?s=400&v=4 |
| og:image:alt | //: # ( . Thank you so much for sending us a pull request! . . Make sure you have a clear name for your pull request. . The name should start with a capital letter and no dot is required in the end... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bb43a7bc61aba1b91c3c5cf8e7d00342e1e77a0cfe55a141222dbd7f9782d26f |
| 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 | 34817b01ad7cdf8b2beb35ea7b0e2a7609004eff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width