{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7668","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7668/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7668/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7668/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/7668","id":325187826,"node_id":"MDU6SXNzdWUzMjUxODc4MjY=","number":7668,"title":"Capture logs during java unit tests","user":{"login":"erikkemperman","id":3100637,"node_id":"MDQ6VXNlcjMxMDA2Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/3100637?v=4","gravatar_id":"","url":"https://api.github.com/users/erikkemperman","html_url":"https://github.com/erikkemperman","followers_url":"https://api.github.com/users/erikkemperman/followers","following_url":"https://api.github.com/users/erikkemperman/following{/other_user}","gists_url":"https://api.github.com/users/erikkemperman/gists{/gist_id}","starred_url":"https://api.github.com/users/erikkemperman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikkemperman/subscriptions","organizations_url":"https://api.github.com/users/erikkemperman/orgs","repos_url":"https://api.github.com/users/erikkemperman/repos","events_url":"https://api.github.com/users/erikkemperman/events{/privacy}","received_events_url":"https://api.github.com/users/erikkemperman/received_events","type":"User","site_admin":false},"labels":[{"id":241999106,"node_id":"MDU6TGFiZWwyNDE5OTkxMDY=","url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/feature%20request","name":"feature request","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/milestones/142","html_url":"https://github.com/jhipster/generator-jhipster/milestone/142","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/milestones/142/labels","id":3416203,"node_id":"MDk6TWlsZXN0b25lMzQxNjIwMw==","number":142,"title":"5.0.0-beta.2","description":"","creator":{"login":"jdubois","id":316835,"node_id":"MDQ6VXNlcjMxNjgzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/316835?v=4","gravatar_id":"","url":"https://api.github.com/users/jdubois","html_url":"https://github.com/jdubois","followers_url":"https://api.github.com/users/jdubois/followers","following_url":"https://api.github.com/users/jdubois/following{/other_user}","gists_url":"https://api.github.com/users/jdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdubois/subscriptions","organizations_url":"https://api.github.com/users/jdubois/orgs","repos_url":"https://api.github.com/users/jdubois/repos","events_url":"https://api.github.com/users/jdubois/events{/privacy}","received_events_url":"https://api.github.com/users/jdubois/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":204,"state":"open","created_at":"2018-06-11T15:37:05Z","updated_at":"2018-06-13T08:31:26Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-05-22T08:23:31Z","updated_at":"2018-06-15T05:18:27Z","closed_at":"2018-06-12T14:03:05Z","author_association":"MEMBER","body":"##### **Overview of the feature request**\r\n\r\nI would like to propose that, during (java) unit tests, we might capture the logging, for two reasons:\r\n- explicitly assert the content being logged is as expected\r\n- keep the terminal tidy during build\r\n\r\nIn the serverside library, we've been doing that for a while now, using [`LogbackRecorder`](https://github.com/jhipster/jhipster/blob/master/jhipster-framework/src/main/java/io/github/jhipster/test/LogbackRecorder.java), and it seems to be working reasonably well.\r\n\r\n##### **Motivation for or Use Case**\r\n\r\nToo much stuff is written to my terminal during builds. Most of it is uninteresting (passing tests) but some of it looks scary even though it is harmless (expected errors). As a consequence, things that actually require my attention are easy too miss / hard to find.\r\n\r\nI would be willing to start work on this -- but only if you agree it is worth a try, of course. What do you think?\r\n\r\n- [x] Checking this box is mandatory (this is just to show you read everything)\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/397516315","html_url":"https://github.com/jhipster/generator-jhipster/issues/7668#issuecomment-397516315","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/7668","id":397516315,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzUxNjMxNQ==","user":{"login":"erikkemperman","id":3100637,"node_id":"MDQ6VXNlcjMxMDA2Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/3100637?v=4","gravatar_id":"","url":"https://api.github.com/users/erikkemperman","html_url":"https://github.com/erikkemperman","followers_url":"https://api.github.com/users/erikkemperman/followers","following_url":"https://api.github.com/users/erikkemperman/following{/other_user}","gists_url":"https://api.github.com/users/erikkemperman/gists{/gist_id}","starred_url":"https://api.github.com/users/erikkemperman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikkemperman/subscriptions","organizations_url":"https://api.github.com/users/erikkemperman/orgs","repos_url":"https://api.github.com/users/erikkemperman/repos","events_url":"https://api.github.com/users/erikkemperman/events{/privacy}","received_events_url":"https://api.github.com/users/erikkemperman/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T05:18:27Z","updated_at":"2018-06-15T05:18:27Z","author_association":"MEMBER","body":"True, but wouldn’t that end up hiding the interesting output as well (failing assertions)?\r\n\r\nAlso, what’s happening in the server lib is we actually assert the log content itself — although I guess some might find that overly pedantic. "}}
{"actor":{"display_login":"erikkemperman"}}