{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/1262","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1262/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1262/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1262/events","html_url":"https://github.com/pytest-dev/pytest/issues/1262","id":122464829,"number":1262,"title":"Indicate non-pytest warnings in the UI","user":{"login":"DRMacIver","id":28623,"avatar_url":"https://avatars.githubusercontent.com/u/28623?v=3","gravatar_id":"","url":"https://api.github.com/users/DRMacIver","html_url":"https://github.com/DRMacIver","followers_url":"https://api.github.com/users/DRMacIver/followers","following_url":"https://api.github.com/users/DRMacIver/following{/other_user}","gists_url":"https://api.github.com/users/DRMacIver/gists{/gist_id}","starred_url":"https://api.github.com/users/DRMacIver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DRMacIver/subscriptions","organizations_url":"https://api.github.com/users/DRMacIver/orgs","repos_url":"https://api.github.com/users/DRMacIver/repos","events_url":"https://api.github.com/users/DRMacIver/events{/privacy}","received_events_url":"https://api.github.com/users/DRMacIver/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/reporting","name":"reporting","color":"fef2c0"},{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/task","name":"task","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-16T09:42:41Z","updated_at":"2015-12-16T12:04:48Z","closed_at":null,"body":"My library, [Hypothesis](http://hypothesis.readthedocs.org/en/latest/) potentially emits a number of warnings indicating that a test is in some way doing the wrong thing.\r\n\r\nCurrently these will only show up if the code is being run with --capture=no, or if a test actually fails. It would be useful if the user were in some way notified that their code is emitting warnings even within a passing test, because warnings might indicate that the test is passing erroneously.\r\n\r\nThings I would ideally like to see:\r\n\r\n1. A visual indicator somewhere that there have been warnings raised during tests. e.g. in the report where pytest warnings are indicated an 'N other warnings' label\r\n2. Some easy way of running the tests in a way that indicates the presence of warnings. e.g. emitting warnings in verbose mode would be nice, but maybe too noisy.\r\n\r\nI leave the exact UI up to your judgement, I just want the warnings my library is emitting to not get swallowed. :-)"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/165086681","html_url":"https://github.com/pytest-dev/pytest/issues/1262#issuecomment-165086681","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1262","id":165086681,"user":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T12:04:48Z","updated_at":"2015-12-16T12:04:48Z","body":"We would also probably need a way to silence some warnings, probably using some configuration variable."}}