{"action":"created","comment":{"url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments/59135221","id":59135221,"diff_hunk":"@@ -59,6 +59,20 @@ In general, ensure as far as possible that tests are deterministic. Keep tests s\n \n To test for events, you can create new events for the test in [`util.events.testevents`](../src/main/java/util/events/testevents), ensure that you also create the corresponding event handler. You can then test for event triggering using [`UI.events.registerEvent((EventHandler))`](../src/main/java/ui/UI.java).\n \n+## Headless Mode\n+\n+Unlike running in GUI tests in headful mode (GUI components are spawned and cursor moves by itself), in headless mode, you will not see any GUI components being initialized on your screen (for Mac users, the focus may constantly shifts to HubTurbo icon). To run in headless mode:\n+\n+### Mac & Linux\n+```sh\n+CI=true && ./gradlew clean test -i","path":"docs/testing.md","position":10,"original_position":10,"commit_id":"05992c29d38d846b0bbf7bda2660c0d30cf43d7a","original_commit_id":"05992c29d38d846b0bbf7bda2660c0d30cf43d7a","user":{"login":"damithc","id":1673303,"avatar_url":"https://avatars.githubusercontent.com/u/1673303?v=3","gravatar_id":"","url":"https://api.github.com/users/damithc","html_url":"https://github.com/damithc","followers_url":"https://api.github.com/users/damithc/followers","following_url":"https://api.github.com/users/damithc/following{/other_user}","gists_url":"https://api.github.com/users/damithc/gists{/gist_id}","starred_url":"https://api.github.com/users/damithc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damithc/subscriptions","organizations_url":"https://api.github.com/users/damithc/orgs","repos_url":"https://api.github.com/users/damithc/repos","events_url":"https://api.github.com/users/damithc/events{/privacy}","received_events_url":"https://api.github.com/users/damithc/received_events","type":"User","site_admin":false},"body":"Sure, let's stick with the `&&` then.","created_at":"2016-04-10T14:43:34Z","updated_at":"2016-04-10T14:43:34Z","html_url":"https://github.com/HubTurbo/HubTurbo/pull/1490#discussion_r59135221","pull_request_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1490","_links":{"self":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments/59135221"},"html":{"href":"https://github.com/HubTurbo/HubTurbo/pull/1490#discussion_r59135221"},"pull_request":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1490"}}},"pull_request":{"url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1490","id":65573013,"html_url":"https://github.com/HubTurbo/HubTurbo/pull/1490","diff_url":"https://github.com/HubTurbo/HubTurbo/pull/1490.diff","patch_url":"https://github.com/HubTurbo/HubTurbo/pull/1490.patch","issue_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1490","number":1490,"state":"open","locked":false,"title":"Add documentation about headless testing workflow #1471","user":{"login":"jinified","id":3635970,"avatar_url":"https://avatars.githubusercontent.com/u/3635970?v=3","gravatar_id":"","url":"https://api.github.com/users/jinified","html_url":"https://github.com/jinified","followers_url":"https://api.github.com/users/jinified/followers","following_url":"https://api.github.com/users/jinified/following{/other_user}","gists_url":"https://api.github.com/users/jinified/gists{/gist_id}","starred_url":"https://api.github.com/users/jinified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinified/subscriptions","organizations_url":"https://api.github.com/users/jinified/orgs","repos_url":"https://api.github.com/users/jinified/repos","events_url":"https://api.github.com/users/jinified/events{/privacy}","received_events_url":"https://api.github.com/users/jinified/received_events","type":"User","site_admin":false},"body":"Fixes #1471 \r\n\r\n## Changes\r\n- [x] what is headless testing ?\r\n- [x] how to run headless tests ?\r\n- [x] tips to increase success of tests \r\n- [x] what are the quirks of writing tests ? \r\n","created_at":"2016-04-07T04:37:14Z","updated_at":"2016-04-10T14:43:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54977210b13e38337b5a25712fce3a60f7d615da","assignee":{"login":"ndt93","id":5065989,"avatar_url":"https://avatars.githubusercontent.com/u/5065989?v=3","gravatar_id":"","url":"https://api.github.com/users/ndt93","html_url":"https://github.com/ndt93","followers_url":"https://api.github.com/users/ndt93/followers","following_url":"https://api.github.com/users/ndt93/following{/other_user}","gists_url":"https://api.github.com/users/ndt93/gists{/gist_id}","starred_url":"https://api.github.com/users/ndt93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndt93/subscriptions","organizations_url":"https://api.github.com/users/ndt93/orgs","repos_url":"https://api.github.com/users/ndt93/repos","events_url":"https://api.github.com/users/ndt93/events{/privacy}","received_events_url":"https://api.github.com/users/ndt93/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1490/commits","review_comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1490/comments","review_comment_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1490/comments","statuses_url":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/05992c29d38d846b0bbf7bda2660c0d30cf43d7a","head":{"label":"jinified:1471-headless-testing-documentation","ref":"1471-headless-testing-documentation","sha":"05992c29d38d846b0bbf7bda2660c0d30cf43d7a","user":{"login":"jinified","id":3635970,"avatar_url":"https://avatars.githubusercontent.com/u/3635970?v=3","gravatar_id":"","url":"https://api.github.com/users/jinified","html_url":"https://github.com/jinified","followers_url":"https://api.github.com/users/jinified/followers","following_url":"https://api.github.com/users/jinified/following{/other_user}","gists_url":"https://api.github.com/users/jinified/gists{/gist_id}","starred_url":"https://api.github.com/users/jinified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinified/subscriptions","organizations_url":"https://api.github.com/users/jinified/orgs","repos_url":"https://api.github.com/users/jinified/repos","events_url":"https://api.github.com/users/jinified/events{/privacy}","received_events_url":"https://api.github.com/users/jinified/received_events","type":"User","site_admin":false},"repo":{"id":49410454,"name":"HubTurbo","full_name":"jinified/HubTurbo","owner":{"login":"jinified","id":3635970,"avatar_url":"https://avatars.githubusercontent.com/u/3635970?v=3","gravatar_id":"","url":"https://api.github.com/users/jinified","html_url":"https://github.com/jinified","followers_url":"https://api.github.com/users/jinified/followers","following_url":"https://api.github.com/users/jinified/following{/other_user}","gists_url":"https://api.github.com/users/jinified/gists{/gist_id}","starred_url":"https://api.github.com/users/jinified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinified/subscriptions","organizations_url":"https://api.github.com/users/jinified/orgs","repos_url":"https://api.github.com/users/jinified/repos","events_url":"https://api.github.com/users/jinified/events{/privacy}","received_events_url":"https://api.github.com/users/jinified/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jinified/HubTurbo","description":"A companion to GitHub for your desktop","fork":true,"url":"https://api.github.com/repos/jinified/HubTurbo","forks_url":"https://api.github.com/repos/jinified/HubTurbo/forks","keys_url":"https://api.github.com/repos/jinified/HubTurbo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jinified/HubTurbo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jinified/HubTurbo/teams","hooks_url":"https://api.github.com/repos/jinified/HubTurbo/hooks","issue_events_url":"https://api.github.com/repos/jinified/HubTurbo/issues/events{/number}","events_url":"https://api.github.com/repos/jinified/HubTurbo/events","assignees_url":"https://api.github.com/repos/jinified/HubTurbo/assignees{/user}","branches_url":"https://api.github.com/repos/jinified/HubTurbo/branches{/branch}","tags_url":"https://api.github.com/repos/jinified/HubTurbo/tags","blobs_url":"https://api.github.com/repos/jinified/HubTurbo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jinified/HubTurbo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jinified/HubTurbo/git/refs{/sha}","trees_url":"https://api.github.com/repos/jinified/HubTurbo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jinified/HubTurbo/statuses/{sha}","languages_url":"https://api.github.com/repos/jinified/HubTurbo/languages","stargazers_url":"https://api.github.com/repos/jinified/HubTurbo/stargazers","contributors_url":"https://api.github.com/repos/jinified/HubTurbo/contributors","subscribers_url":"https://api.github.com/repos/jinified/HubTurbo/subscribers","subscription_url":"https://api.github.com/repos/jinified/HubTurbo/subscription","commits_url":"https://api.github.com/repos/jinified/HubTurbo/commits{/sha}","git_commits_url":"https://api.github.com/repos/jinified/HubTurbo/git/commits{/sha}","comments_url":"https://api.github.com/repos/jinified/HubTurbo/comments{/number}","issue_comment_url":"https://api.github.com/repos/jinified/HubTurbo/issues/comments{/number}","contents_url":"https://api.github.com/repos/jinified/HubTurbo/contents/{+path}","compare_url":"https://api.github.com/repos/jinified/HubTurbo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jinified/HubTurbo/merges","archive_url":"https://api.github.com/repos/jinified/HubTurbo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jinified/HubTurbo/downloads","issues_url":"https://api.github.com/repos/jinified/HubTurbo/issues{/number}","pulls_url":"https://api.github.com/repos/jinified/HubTurbo/pulls{/number}","milestones_url":"https://api.github.com/repos/jinified/HubTurbo/milestones{/number}","notifications_url":"https://api.github.com/repos/jinified/HubTurbo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jinified/HubTurbo/labels{/name}","releases_url":"https://api.github.com/repos/jinified/HubTurbo/releases{/id}","deployments_url":"https://api.github.com/repos/jinified/HubTurbo/deployments","created_at":"2016-01-11T07:48:32Z","updated_at":"2016-01-11T07:48:35Z","pushed_at":"2016-04-10T13:57:12Z","git_url":"git://github.com/jinified/HubTurbo.git","ssh_url":"git@github.com:jinified/HubTurbo.git","clone_url":"https://github.com/jinified/HubTurbo.git","svn_url":"https://github.com/jinified/HubTurbo","homepage":"http://hubturbo.info","size":136450,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HubTurbo:master","ref":"master","sha":"9c74cf9f13cbabd03937eb63a0ce776d787e1efd","user":{"login":"HubTurbo","id":7955871,"avatar_url":"https://avatars.githubusercontent.com/u/7955871?v=3","gravatar_id":"","url":"https://api.github.com/users/HubTurbo","html_url":"https://github.com/HubTurbo","followers_url":"https://api.github.com/users/HubTurbo/followers","following_url":"https://api.github.com/users/HubTurbo/following{/other_user}","gists_url":"https://api.github.com/users/HubTurbo/gists{/gist_id}","starred_url":"https://api.github.com/users/HubTurbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubTurbo/subscriptions","organizations_url":"https://api.github.com/users/HubTurbo/orgs","repos_url":"https://api.github.com/users/HubTurbo/repos","events_url":"https://api.github.com/users/HubTurbo/events{/privacy}","received_events_url":"https://api.github.com/users/HubTurbo/received_events","type":"Organization","site_admin":false},"repo":{"id":20919534,"name":"HubTurbo","full_name":"HubTurbo/HubTurbo","owner":{"login":"HubTurbo","id":7955871,"avatar_url":"https://avatars.githubusercontent.com/u/7955871?v=3","gravatar_id":"","url":"https://api.github.com/users/HubTurbo","html_url":"https://github.com/HubTurbo","followers_url":"https://api.github.com/users/HubTurbo/followers","following_url":"https://api.github.com/users/HubTurbo/following{/other_user}","gists_url":"https://api.github.com/users/HubTurbo/gists{/gist_id}","starred_url":"https://api.github.com/users/HubTurbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubTurbo/subscriptions","organizations_url":"https://api.github.com/users/HubTurbo/orgs","repos_url":"https://api.github.com/users/HubTurbo/repos","events_url":"https://api.github.com/users/HubTurbo/events{/privacy}","received_events_url":"https://api.github.com/users/HubTurbo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HubTurbo/HubTurbo","description":"A companion to GitHub for your desktop","fork":false,"url":"https://api.github.com/repos/HubTurbo/HubTurbo","forks_url":"https://api.github.com/repos/HubTurbo/HubTurbo/forks","keys_url":"https://api.github.com/repos/HubTurbo/HubTurbo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubTurbo/HubTurbo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubTurbo/HubTurbo/teams","hooks_url":"https://api.github.com/repos/HubTurbo/HubTurbo/hooks","issue_events_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/events{/number}","events_url":"https://api.github.com/repos/HubTurbo/HubTurbo/events","assignees_url":"https://api.github.com/repos/HubTurbo/HubTurbo/assignees{/user}","branches_url":"https://api.github.com/repos/HubTurbo/HubTurbo/branches{/branch}","tags_url":"https://api.github.com/repos/HubTurbo/HubTurbo/tags","blobs_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/{sha}","languages_url":"https://api.github.com/repos/HubTurbo/HubTurbo/languages","stargazers_url":"https://api.github.com/repos/HubTurbo/HubTurbo/stargazers","contributors_url":"https://api.github.com/repos/HubTurbo/HubTurbo/contributors","subscribers_url":"https://api.github.com/repos/HubTurbo/HubTurbo/subscribers","subscription_url":"https://api.github.com/repos/HubTurbo/HubTurbo/subscription","commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubTurbo/HubTurbo/contents/{+path}","compare_url":"https://api.github.com/repos/HubTurbo/HubTurbo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubTurbo/HubTurbo/merges","archive_url":"https://api.github.com/repos/HubTurbo/HubTurbo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubTurbo/HubTurbo/downloads","issues_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues{/number}","pulls_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls{/number}","milestones_url":"https://api.github.com/repos/HubTurbo/HubTurbo/milestones{/number}","notifications_url":"https://api.github.com/repos/HubTurbo/HubTurbo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubTurbo/HubTurbo/labels{/name}","releases_url":"https://api.github.com/repos/HubTurbo/HubTurbo/releases{/id}","deployments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/deployments","created_at":"2014-06-17T10:35:39Z","updated_at":"2016-04-07T07:45:19Z","pushed_at":"2016-04-10T13:57:12Z","git_url":"git://github.com/HubTurbo/HubTurbo.git","ssh_url":"git@github.com:HubTurbo/HubTurbo.git","clone_url":"https://github.com/HubTurbo/HubTurbo.git","svn_url":"https://github.com/HubTurbo/HubTurbo","homepage":"http://hubturbo.info","size":136937,"stargazers_count":18,"watchers_count":18,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":173,"forks":36,"open_issues":173,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1490"},"html":{"href":"https://github.com/HubTurbo/HubTurbo/pull/1490"},"issue":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1490"},"comments":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1490/comments"},"review_comments":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1490/comments"},"review_comment":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1490/commits"},"statuses":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/05992c29d38d846b0bbf7bda2660c0d30cf43d7a"}}}}