{"action":"opened","issue":{"url":"https://api.github.com/repos/flosell/lambdacd/issues/89","repository_url":"https://api.github.com/repos/flosell/lambdacd","labels_url":"https://api.github.com/repos/flosell/lambdacd/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/flosell/lambdacd/issues/89/comments","events_url":"https://api.github.com/repos/flosell/lambdacd/issues/89/events","html_url":"https://github.com/flosell/lambdacd/issues/89","id":136807362,"number":89,"title":"UI (details): Provide a way to display preformatted text","user":{"login":"flosell","id":540525,"avatar_url":"https://avatars.githubusercontent.com/u/540525?v=3","gravatar_id":"","url":"https://api.github.com/users/flosell","html_url":"https://github.com/flosell","followers_url":"https://api.github.com/users/flosell/followers","following_url":"https://api.github.com/users/flosell/following{/other_user}","gists_url":"https://api.github.com/users/flosell/gists{/gist_id}","starred_url":"https://api.github.com/users/flosell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flosell/subscriptions","organizations_url":"https://api.github.com/users/flosell/orgs","repos_url":"https://api.github.com/users/flosell/repos","events_url":"https://api.github.com/users/flosell/events{/privacy}","received_events_url":"https://api.github.com/users/flosell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flosell/lambdacd/labels/feature","name":"feature","color":"207de5"},{"url":"https://api.github.com/repos/flosell/lambdacd/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/flosell/lambdacd/labels/ui","name":"ui","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-26T20:31:59Z","updated_at":"2016-02-26T20:31:59Z","closed_at":null,"body":"LambdaCD already provides a way to display information on a build step in a structured way with the [`:details` key](https://github.com/flosell/lambdacd/wiki/Build-Steps#output). \r\n\r\nCurrently, it can only display text and links. For things like test results, stack traces and so on, preformatted text might be better. \r\n\r\n### Example: \r\n#### Step Result \r\n```clojure\r\n{:label   \"Mock test results\"\r\n              :details [{:label \"Unit Tests: 0/10 failed\"}\r\n                        {:label   \"Integration Tests Tests: 1/5 failed\"\r\n                         :details [{:label \"SomeTestClass.shouldBeFailingWhenTested\"\r\n                                    :raw   \"java.lang.AssertionError: expected:<0> but was:<10>\\n\\tat org.junit.Assert.fail(Assert.java:88)\\n\\tat org.junit.Assert.failNotEquals(Assert.java:743)\\n\\tat org.junit.Assert.assertEquals(Assert.java:118)\"}]}]}\r\n```\r\n\r\n#### UI: \r\n<img width=\"604\" alt=\"screen shot 2016-02-26 at 21 31 02\" src=\"https://cloud.githubusercontent.com/assets/540525/13364649/466cf8ec-dcd0-11e5-99cc-516210060c3d.png\">\r\n\r\n"}}