{"action":"created","issue":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3439","repository_url":"https://api.github.com/repos/sebastianbergmann/phpunit","labels_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3439/labels{/name}","comments_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3439/comments","events_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3439/events","html_url":"https://github.com/sebastianbergmann/phpunit/pull/3439","id":388619104,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2ODM5OTk4","number":3439,"title":"TestDox colorization","user":{"login":"epdenouden","id":26651359,"node_id":"MDQ6VXNlcjI2NjUxMzU5","avatar_url":"https://avatars1.githubusercontent.com/u/26651359?v=4","gravatar_id":"","url":"https://api.github.com/users/epdenouden","html_url":"https://github.com/epdenouden","followers_url":"https://api.github.com/users/epdenouden/followers","following_url":"https://api.github.com/users/epdenouden/following{/other_user}","gists_url":"https://api.github.com/users/epdenouden/gists{/gist_id}","starred_url":"https://api.github.com/users/epdenouden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epdenouden/subscriptions","organizations_url":"https://api.github.com/users/epdenouden/orgs","repos_url":"https://api.github.com/users/epdenouden/repos","events_url":"https://api.github.com/users/epdenouden/events{/privacy}","received_events_url":"https://api.github.com/users/epdenouden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-07T11:39:08Z","updated_at":"2018-12-24T12:33:27Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/pulls/3439","html_url":"https://github.com/sebastianbergmann/phpunit/pull/3439","diff_url":"https://github.com/sebastianbergmann/phpunit/pull/3439.diff","patch_url":"https://github.com/sebastianbergmann/phpunit/pull/3439.patch"},"body":"While working on the [buffered TestDox printer](https://github.com/sebastianbergmann/phpunit/pull/3417) I found the output format really useful for  work on the terminal. Adding some color highlighting and removing clutter gives it a completely different look. It's much easier to spot when something needs attention.\r\n\r\n### Changes\r\nBasic handling of ANSI colors gets its own helper class until we migrate over to a better CLI/console library. Its own test suite gives a quick demo of most features:\r\n\r\n![image](https://user-images.githubusercontent.com/26651359/49768662-5d6a0000-fcdd-11e8-8ee1-f6930e8eee8d.png)\r\n\r\n- mark changes in `TestSuite` by underlining the class name or class `@testdox`-annotation\r\n- when verbose the test duration mirrors the status color\r\n- reduced typographic clutter when using color\r\n- `@dataprovider` parameter values used in `@testdox` are highlighted\r\n- `@testdox` has access to the name of the `@dataprovider`-row via `$_dataName`\r\n- show whitespace using dimmed interpuncts \r\n- improved visualization for support for `@dataprovider` without `@testdox`\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/26651359/50026828-8266b780-ffea-11e8-8081-4e113ff77faf.png)\r\n\r\n\r\n- mirror test status colors in exception/error messages\r\n- use dimmed colors to make PHPT path and filenames easier to read\r\n- use dimmed colors to draw attention to changes in PHPT working directory\r\n- highlighted stacktraces: changes in path+file, line numbers\r\n\r\n![image](https://user-images.githubusercontent.com/26651359/49802961-c76ebd80-fd4e-11e8-96bd-657110e1bf46.png)\r\n\r\nThe `CLITestDoxPrinter` has been cleaned up further. It has given me fresh ideas for the `TestListener` rewrite and cleaning up the pile of slow end-to-end tests. I'll be creating issues with proposed practical solutions for this. This has been a nice warming up for working on a new implementation for the test result event system.\r\n\r\nAny remarks or ideas are very welcome as always."},"comment":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/comments/449728838","html_url":"https://github.com/sebastianbergmann/phpunit/pull/3439#issuecomment-449728838","issue_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/3439","id":449728838,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTcyODgzOA==","user":{"login":"epdenouden","id":26651359,"node_id":"MDQ6VXNlcjI2NjUxMzU5","avatar_url":"https://avatars1.githubusercontent.com/u/26651359?v=4","gravatar_id":"","url":"https://api.github.com/users/epdenouden","html_url":"https://github.com/epdenouden","followers_url":"https://api.github.com/users/epdenouden/followers","following_url":"https://api.github.com/users/epdenouden/following{/other_user}","gists_url":"https://api.github.com/users/epdenouden/gists{/gist_id}","starred_url":"https://api.github.com/users/epdenouden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epdenouden/subscriptions","organizations_url":"https://api.github.com/users/epdenouden/orgs","repos_url":"https://api.github.com/users/epdenouden/repos","events_url":"https://api.github.com/users/epdenouden/events{/privacy}","received_events_url":"https://api.github.com/users/epdenouden/received_events","type":"User","site_admin":false},"created_at":"2018-12-24T12:33:27Z","updated_at":"2018-12-24T12:33:27Z","author_association":"CONTRIBUTOR","body":"🎄 🎁 \r\n\r\n@sebastianbergmann  I'm going to continue my test suite related housekeeping on #3453 before this pull gets too big."}}
{"actor":{"display_login":"epdenouden"}}