{"action":"created","issue":{"url":"https://api.github.com/repos/allure-framework/allure-python/issues/263","repository_url":"https://api.github.com/repos/allure-framework/allure-python","labels_url":"https://api.github.com/repos/allure-framework/allure-python/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/allure-framework/allure-python/issues/263/comments","events_url":"https://api.github.com/repos/allure-framework/allure-python/issues/263/events","html_url":"https://github.com/allure-framework/allure-python/pull/263","id":337861309,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4OTM0Mzk0","number":263,"title":"Add allure-pytest-log plugin for capture stdout content and attach to each step/test/fixture in  report","user":{"login":"wuhuizuo","id":2574558,"node_id":"MDQ6VXNlcjI1NzQ1NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2574558?v=4","gravatar_id":"","url":"https://api.github.com/users/wuhuizuo","html_url":"https://github.com/wuhuizuo","followers_url":"https://api.github.com/users/wuhuizuo/followers","following_url":"https://api.github.com/users/wuhuizuo/following{/other_user}","gists_url":"https://api.github.com/users/wuhuizuo/gists{/gist_id}","starred_url":"https://api.github.com/users/wuhuizuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuhuizuo/subscriptions","organizations_url":"https://api.github.com/users/wuhuizuo/orgs","repos_url":"https://api.github.com/users/wuhuizuo/repos","events_url":"https://api.github.com/users/wuhuizuo/events{/privacy}","received_events_url":"https://api.github.com/users/wuhuizuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-03T11:36:46Z","updated_at":"2018-07-03T12:14:22Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/allure-framework/allure-python/pulls/263","html_url":"https://github.com/allure-framework/allure-python/pull/263","diff_url":"https://github.com/allure-framework/allure-python/pull/263.diff","patch_url":"https://github.com/allure-framework/allure-python/pull/263.patch"},"body":"[//]: # (\r\n. Thank you so much for sending us a pull request! \r\n.\r\n. Make sure you have a clear name for your pull request. \r\n. The name should start with a capital letter and no dot is required in the end of the sentence.\r\n. To link the request with isses use the following notation: (fixes #123, fixes #321\\)\r\n.\r\n. An example of good pull request names:\r\n. - Add Russian translation (fixes #123\\)\r\n. - Add an ability to disable default plugins\r\n. - Support emoji in test descriptions\r\n)\r\n\r\n### Context\r\n[//]: # (\r\nDescribe the problem or feature in addition to a link to the issues\r\n)\r\n\r\nAdd pytest plugin: allure-pytest-log for capture stdout content and attach to allure report.\r\n\r\n**example:**\r\n\r\n```python\r\n# file: tests/test_hello.py\r\nimport allure\r\nimport time\r\nimport pytest\r\n\r\n@pytest.fixture(scope='function')\r\ndef hello():\r\n    time.sleep(1)\r\n    print('hello')\r\n    time.sleep(1)\r\n    allure.attach('attach in fixture:hello', name='manual attach in fixture')\r\n    return 'hello'\r\n\r\nclass TestXxx(object):\r\n    class TestYyy(object):\r\n        def test_with_steps(self, hello):\r\n            with allure.step('step1'):\r\n                print('step1')\r\n            with allure.step('step2'):\r\n                print('step2')\r\n            with allure.step('step3'):\r\n                print('step3')\r\n                print(hello)\r\n```\r\n\r\nAfter you have installed pip: `pytest-allure-log`, you can run with:\r\n```bash\r\npytest -s --allure-capture --alluredir=reports\r\n```\r\n\r\n\r\n#### Checklist\r\n- [x] [Sign Allure CLA][cla]\r\n- [x] Provide unit tests\r\n\r\n[cla]: https://cla-assistant.io/accept/allure-framework/allure2\r\n"},"comment":{"url":"https://api.github.com/repos/allure-framework/allure-python/issues/comments/402134239","html_url":"https://github.com/allure-framework/allure-python/pull/263#issuecomment-402134239","issue_url":"https://api.github.com/repos/allure-framework/allure-python/issues/263","id":402134239,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjEzNDIzOQ==","user":{"login":"sseliverstov","id":19683904,"node_id":"MDQ6VXNlcjE5NjgzOTA0","avatar_url":"https://avatars1.githubusercontent.com/u/19683904?v=4","gravatar_id":"","url":"https://api.github.com/users/sseliverstov","html_url":"https://github.com/sseliverstov","followers_url":"https://api.github.com/users/sseliverstov/followers","following_url":"https://api.github.com/users/sseliverstov/following{/other_user}","gists_url":"https://api.github.com/users/sseliverstov/gists{/gist_id}","starred_url":"https://api.github.com/users/sseliverstov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sseliverstov/subscriptions","organizations_url":"https://api.github.com/users/sseliverstov/orgs","repos_url":"https://api.github.com/users/sseliverstov/repos","events_url":"https://api.github.com/users/sseliverstov/events{/privacy}","received_events_url":"https://api.github.com/users/sseliverstov/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T12:14:22Z","updated_at":"2018-07-03T12:14:22Z","author_association":"MEMBER","body":"@wuhuizuo, at first, it is awesome pr) Thanks!\r\nYep, I will review it in few days."}}
{"actor":{"display_login":"sseliverstov"}}