{"action":"created","comment":{"url":"https://api.github.com/repos/Catrobat/Catroid/pulls/comments/125993274","pull_request_review_id":48438092,"id":125993274,"diff_hunk":"@@ -0,0 +1,42 @@\n+#!/bin/bash\n+\n+#put header\n+echo \"/*\n+ * Catroid: An on-device visual programming system for Android devices\n+ * Copyright (C) 2010-2017 The Catrobat Team\n+ * (<http://developer.catrobat.org/credits>)\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU Affero General Public License as\n+ * published by the Free Software Foundation, either version 3 of the\n+ * License, or (at your option) any later version.\n+ *\n+ * An additional term exception under section 7 of the GNU Affero\n+ * General Public License, version 3, is available at\n+ * http://developer.catrobat.org/license_additional_term\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\\n\" > AllEspressoTestsSuite.java\n+\n+#put packagename\n+echo \"package org.catrobat.catroid.uiespresso.testsuites;\\n\" >> AllEspressoTestsSuite.java\n+\n+#put imports\n+find .. -name '*Test.java' | sed 's/\\.\\.\\//import org.catrobat.catroid.uiespresso./' | sed 's/\\//\\./g' | sed 's/.java/;/' | sort >> AllEspressoTestsSuite.java\n+\n+#put annotations\n+echo \"import org.junit.runner.RunWith;\\nimport org.junit.runners.Suite;\\n\\n@RunWith(Suite.class)\\n@Suite.SuiteClasses({\" >> AllEspressoTestsSuite.java\n+\n+#put classes to be imported\n+find .. -name '*Test.java' | sed 's/^.*\\///' | sed 's/java/class/' | sed 's/$/,/' | sed '$s/,//' | sed 's/^/\t\t/' >> AllEspressoTestsSuite.java\n+\n+#put class\n+echo \"})\\npublic class AllEspressoTestsSuite {\\n}\" >> AllEspressoTestsSuite.java\n+\n+exit","path":"catroid/src/androidTest/java/org/catrobat/catroid/uiespresso/testsuites/generateAllEspressoTestsSuite.sh","position":null,"original_position":42,"commit_id":"babc2f3ca595f15dfd13ee68b23d588c86695725","original_commit_id":"8bb4e7839884a9399fcb604e86c0f2de36d1e594","user":{"login":"robertpainsi","id":1794599,"avatar_url":"https://avatars2.githubusercontent.com/u/1794599?v=3","gravatar_id":"","url":"https://api.github.com/users/robertpainsi","html_url":"https://github.com/robertpainsi","followers_url":"https://api.github.com/users/robertpainsi/followers","following_url":"https://api.github.com/users/robertpainsi/following{/other_user}","gists_url":"https://api.github.com/users/robertpainsi/gists{/gist_id}","starred_url":"https://api.github.com/users/robertpainsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertpainsi/subscriptions","organizations_url":"https://api.github.com/users/robertpainsi/orgs","repos_url":"https://api.github.com/users/robertpainsi/repos","events_url":"https://api.github.com/users/robertpainsi/events{/privacy}","received_events_url":"https://api.github.com/users/robertpainsi/received_events","type":"User","site_admin":false},"body":"We could exclude this file entirely from Checkstyle [catroid/gradle/code_quality_tasks.gradle#L28](https://github.com/Catrobat/Catroid/blob/be9b08440d257bdb9adbd6cf142aae5b41a8e8d0/catroid/gradle/code_quality_tasks.gradle#L28).\r\nHowever, if you reformat the whole project through AS, the import order will always be changed.\r\n\r\nWe should also add a comment to the java file that it's auto generated and that you should use the script to create it (and then run the formatter, if we don't go with excluding the file).\r\n\r\nI think we should add a `| sort` [here](https://github.com/Catrobat/Catroid/blob/be9b08440d257bdb9adbd6cf142aae5b41a8e8d0/catroid/src/androidTest/java/org/catrobat/catroid/uiespresso/testsuites/generateAllEspressoTestsSuite.sh#L4). Otherwise the order is completely different depending on the OS. Not sure why find is different on Ubuntu :anguished:\r\n\r\n```diff\r\n @RunWith(Suite.class)\r\n @Suite.SuiteClasses({\r\n-        PocketMusicActivityTest.class,\r\n+        FormulaEditorKeyboardTest.class,\r\n+        FormulaEditorTest.class,\r\n         SmokeTest.class,\r\n         FlakyTestTest.class,\r\n-        WhenNfcBrickStageTest.class,\r\n-        LegoEv3PlayToneBrickTest.class,\r\n-        ComeToFrontBrickTest.class,\r\n-        HideBrickTest.class,\r\n-        ChangeTransparencyByNBrickTest.class,\r\n+        PocketMusicActivityTest.class,\r\n…\r\n```\r\n\r\nSince this task is executed quickly, maybe we add it to gradle to always run before any build?","created_at":"2017-07-06T19:24:39Z","updated_at":"2017-07-06T19:24:39Z","html_url":"https://github.com/Catrobat/Catroid/pull/2370#discussion_r125993274","pull_request_url":"https://api.github.com/repos/Catrobat/Catroid/pulls/2370","_links":{"self":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/comments/125993274"},"html":{"href":"https://github.com/Catrobat/Catroid/pull/2370#discussion_r125993274"},"pull_request":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/2370"}}},"pull_request":{"url":"https://api.github.com/repos/Catrobat/Catroid/pulls/2370","id":128144277,"html_url":"https://github.com/Catrobat/Catroid/pull/2370","diff_url":"https://github.com/Catrobat/Catroid/pull/2370.diff","patch_url":"https://github.com/Catrobat/Catroid/pull/2370.patch","issue_url":"https://api.github.com/repos/Catrobat/Catroid/issues/2370","number":2370,"state":"closed","locked":false,"title":"CAT-2315 GSOC[TH] Test categories","user":{"login":"84n4n4","id":15098185,"avatar_url":"https://avatars1.githubusercontent.com/u/15098185?v=3","gravatar_id":"","url":"https://api.github.com/users/84n4n4","html_url":"https://github.com/84n4n4","followers_url":"https://api.github.com/users/84n4n4/followers","following_url":"https://api.github.com/users/84n4n4/following{/other_user}","gists_url":"https://api.github.com/users/84n4n4/gists{/gist_id}","starred_url":"https://api.github.com/users/84n4n4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/84n4n4/subscriptions","organizations_url":"https://api.github.com/users/84n4n4/orgs","repos_url":"https://api.github.com/users/84n4n4/repos","events_url":"https://api.github.com/users/84n4n4/events{/privacy}","received_events_url":"https://api.github.com/users/84n4n4/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-29T12:55:18Z","updated_at":"2017-07-06T19:24:39Z","closed_at":"2017-07-05T21:37:51Z","merged_at":"2017-07-05T21:37:51Z","merge_commit_sha":"be9b08440d257bdb9adbd6cf142aae5b41a8e8d0","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Catrobat/Catroid/pulls/2370/commits","review_comments_url":"https://api.github.com/repos/Catrobat/Catroid/pulls/2370/comments","review_comment_url":"https://api.github.com/repos/Catrobat/Catroid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Catrobat/Catroid/issues/2370/comments","statuses_url":"https://api.github.com/repos/Catrobat/Catroid/statuses/babc2f3ca595f15dfd13ee68b23d588c86695725","head":{"label":"84n4n4:CAT-2315-GSOC-TestCategories","ref":"CAT-2315-GSOC-TestCategories","sha":"babc2f3ca595f15dfd13ee68b23d588c86695725","user":{"login":"84n4n4","id":15098185,"avatar_url":"https://avatars1.githubusercontent.com/u/15098185?v=3","gravatar_id":"","url":"https://api.github.com/users/84n4n4","html_url":"https://github.com/84n4n4","followers_url":"https://api.github.com/users/84n4n4/followers","following_url":"https://api.github.com/users/84n4n4/following{/other_user}","gists_url":"https://api.github.com/users/84n4n4/gists{/gist_id}","starred_url":"https://api.github.com/users/84n4n4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/84n4n4/subscriptions","organizations_url":"https://api.github.com/users/84n4n4/orgs","repos_url":"https://api.github.com/users/84n4n4/repos","events_url":"https://api.github.com/users/84n4n4/events{/privacy}","received_events_url":"https://api.github.com/users/84n4n4/received_events","type":"User","site_admin":false},"repo":{"id":44180842,"name":"Catroid","full_name":"84n4n4/Catroid","owner":{"login":"84n4n4","id":15098185,"avatar_url":"https://avatars1.githubusercontent.com/u/15098185?v=3","gravatar_id":"","url":"https://api.github.com/users/84n4n4","html_url":"https://github.com/84n4n4","followers_url":"https://api.github.com/users/84n4n4/followers","following_url":"https://api.github.com/users/84n4n4/following{/other_user}","gists_url":"https://api.github.com/users/84n4n4/gists{/gist_id}","starred_url":"https://api.github.com/users/84n4n4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/84n4n4/subscriptions","organizations_url":"https://api.github.com/users/84n4n4/orgs","repos_url":"https://api.github.com/users/84n4n4/repos","events_url":"https://api.github.com/users/84n4n4/events{/privacy}","received_events_url":"https://api.github.com/users/84n4n4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/84n4n4/Catroid","description":"Writing programs on an Android device without prior knowledge.","fork":true,"url":"https://api.github.com/repos/84n4n4/Catroid","forks_url":"https://api.github.com/repos/84n4n4/Catroid/forks","keys_url":"https://api.github.com/repos/84n4n4/Catroid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/84n4n4/Catroid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/84n4n4/Catroid/teams","hooks_url":"https://api.github.com/repos/84n4n4/Catroid/hooks","issue_events_url":"https://api.github.com/repos/84n4n4/Catroid/issues/events{/number}","events_url":"https://api.github.com/repos/84n4n4/Catroid/events","assignees_url":"https://api.github.com/repos/84n4n4/Catroid/assignees{/user}","branches_url":"https://api.github.com/repos/84n4n4/Catroid/branches{/branch}","tags_url":"https://api.github.com/repos/84n4n4/Catroid/tags","blobs_url":"https://api.github.com/repos/84n4n4/Catroid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/84n4n4/Catroid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/84n4n4/Catroid/git/refs{/sha}","trees_url":"https://api.github.com/repos/84n4n4/Catroid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/84n4n4/Catroid/statuses/{sha}","languages_url":"https://api.github.com/repos/84n4n4/Catroid/languages","stargazers_url":"https://api.github.com/repos/84n4n4/Catroid/stargazers","contributors_url":"https://api.github.com/repos/84n4n4/Catroid/contributors","subscribers_url":"https://api.github.com/repos/84n4n4/Catroid/subscribers","subscription_url":"https://api.github.com/repos/84n4n4/Catroid/subscription","commits_url":"https://api.github.com/repos/84n4n4/Catroid/commits{/sha}","git_commits_url":"https://api.github.com/repos/84n4n4/Catroid/git/commits{/sha}","comments_url":"https://api.github.com/repos/84n4n4/Catroid/comments{/number}","issue_comment_url":"https://api.github.com/repos/84n4n4/Catroid/issues/comments{/number}","contents_url":"https://api.github.com/repos/84n4n4/Catroid/contents/{+path}","compare_url":"https://api.github.com/repos/84n4n4/Catroid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/84n4n4/Catroid/merges","archive_url":"https://api.github.com/repos/84n4n4/Catroid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/84n4n4/Catroid/downloads","issues_url":"https://api.github.com/repos/84n4n4/Catroid/issues{/number}","pulls_url":"https://api.github.com/repos/84n4n4/Catroid/pulls{/number}","milestones_url":"https://api.github.com/repos/84n4n4/Catroid/milestones{/number}","notifications_url":"https://api.github.com/repos/84n4n4/Catroid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/84n4n4/Catroid/labels{/name}","releases_url":"https://api.github.com/repos/84n4n4/Catroid/releases{/id}","deployments_url":"https://api.github.com/repos/84n4n4/Catroid/deployments","created_at":"2015-10-13T14:11:21Z","updated_at":"2016-01-14T11:52:55Z","pushed_at":"2017-07-05T22:42:08Z","git_url":"git://github.com/84n4n4/Catroid.git","ssh_url":"git@github.com:84n4n4/Catroid.git","clone_url":"https://github.com/84n4n4/Catroid.git","svn_url":"https://github.com/84n4n4/Catroid","homepage":"https://share.catrob.at/pocketcode","size":117205,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Catrobat:develop","ref":"develop","sha":"06c6c12f7837e03369b06a66f0dcd1feabe19037","user":{"login":"Catrobat","id":1747223,"avatar_url":"https://avatars2.githubusercontent.com/u/1747223?v=3","gravatar_id":"","url":"https://api.github.com/users/Catrobat","html_url":"https://github.com/Catrobat","followers_url":"https://api.github.com/users/Catrobat/followers","following_url":"https://api.github.com/users/Catrobat/following{/other_user}","gists_url":"https://api.github.com/users/Catrobat/gists{/gist_id}","starred_url":"https://api.github.com/users/Catrobat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catrobat/subscriptions","organizations_url":"https://api.github.com/users/Catrobat/orgs","repos_url":"https://api.github.com/users/Catrobat/repos","events_url":"https://api.github.com/users/Catrobat/events{/privacy}","received_events_url":"https://api.github.com/users/Catrobat/received_events","type":"Organization","site_admin":false},"repo":{"id":4475999,"name":"Catroid","full_name":"Catrobat/Catroid","owner":{"login":"Catrobat","id":1747223,"avatar_url":"https://avatars2.githubusercontent.com/u/1747223?v=3","gravatar_id":"","url":"https://api.github.com/users/Catrobat","html_url":"https://github.com/Catrobat","followers_url":"https://api.github.com/users/Catrobat/followers","following_url":"https://api.github.com/users/Catrobat/following{/other_user}","gists_url":"https://api.github.com/users/Catrobat/gists{/gist_id}","starred_url":"https://api.github.com/users/Catrobat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catrobat/subscriptions","organizations_url":"https://api.github.com/users/Catrobat/orgs","repos_url":"https://api.github.com/users/Catrobat/repos","events_url":"https://api.github.com/users/Catrobat/events{/privacy}","received_events_url":"https://api.github.com/users/Catrobat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Catrobat/Catroid","description":"Writing programs on an Android device without prior knowledge.","fork":false,"url":"https://api.github.com/repos/Catrobat/Catroid","forks_url":"https://api.github.com/repos/Catrobat/Catroid/forks","keys_url":"https://api.github.com/repos/Catrobat/Catroid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Catrobat/Catroid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Catrobat/Catroid/teams","hooks_url":"https://api.github.com/repos/Catrobat/Catroid/hooks","issue_events_url":"https://api.github.com/repos/Catrobat/Catroid/issues/events{/number}","events_url":"https://api.github.com/repos/Catrobat/Catroid/events","assignees_url":"https://api.github.com/repos/Catrobat/Catroid/assignees{/user}","branches_url":"https://api.github.com/repos/Catrobat/Catroid/branches{/branch}","tags_url":"https://api.github.com/repos/Catrobat/Catroid/tags","blobs_url":"https://api.github.com/repos/Catrobat/Catroid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Catrobat/Catroid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Catrobat/Catroid/git/refs{/sha}","trees_url":"https://api.github.com/repos/Catrobat/Catroid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Catrobat/Catroid/statuses/{sha}","languages_url":"https://api.github.com/repos/Catrobat/Catroid/languages","stargazers_url":"https://api.github.com/repos/Catrobat/Catroid/stargazers","contributors_url":"https://api.github.com/repos/Catrobat/Catroid/contributors","subscribers_url":"https://api.github.com/repos/Catrobat/Catroid/subscribers","subscription_url":"https://api.github.com/repos/Catrobat/Catroid/subscription","commits_url":"https://api.github.com/repos/Catrobat/Catroid/commits{/sha}","git_commits_url":"https://api.github.com/repos/Catrobat/Catroid/git/commits{/sha}","comments_url":"https://api.github.com/repos/Catrobat/Catroid/comments{/number}","issue_comment_url":"https://api.github.com/repos/Catrobat/Catroid/issues/comments{/number}","contents_url":"https://api.github.com/repos/Catrobat/Catroid/contents/{+path}","compare_url":"https://api.github.com/repos/Catrobat/Catroid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Catrobat/Catroid/merges","archive_url":"https://api.github.com/repos/Catrobat/Catroid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Catrobat/Catroid/downloads","issues_url":"https://api.github.com/repos/Catrobat/Catroid/issues{/number}","pulls_url":"https://api.github.com/repos/Catrobat/Catroid/pulls{/number}","milestones_url":"https://api.github.com/repos/Catrobat/Catroid/milestones{/number}","notifications_url":"https://api.github.com/repos/Catrobat/Catroid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Catrobat/Catroid/labels{/name}","releases_url":"https://api.github.com/repos/Catrobat/Catroid/releases{/id}","deployments_url":"https://api.github.com/repos/Catrobat/Catroid/deployments","created_at":"2012-05-29T00:18:04Z","updated_at":"2017-06-24T12:08:57Z","pushed_at":"2017-07-06T17:41:06Z","git_url":"git://github.com/Catrobat/Catroid.git","ssh_url":"git@github.com:Catrobat/Catroid.git","clone_url":"https://github.com/Catrobat/Catroid.git","svn_url":"https://github.com/Catrobat/Catroid","homepage":"https://share.catrob.at/pocketcode","size":143583,"stargazers_count":151,"watchers_count":151,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":246,"mirror_url":null,"open_issues_count":142,"forks":246,"open_issues":142,"watchers":151,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/2370"},"html":{"href":"https://github.com/Catrobat/Catroid/pull/2370"},"issue":{"href":"https://api.github.com/repos/Catrobat/Catroid/issues/2370"},"comments":{"href":"https://api.github.com/repos/Catrobat/Catroid/issues/2370/comments"},"review_comments":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/2370/comments"},"review_comment":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/2370/commits"},"statuses":{"href":"https://api.github.com/repos/Catrobat/Catroid/statuses/babc2f3ca595f15dfd13ee68b23d588c86695725"}}}}
{"actor":{"display_login":"robertpainsi"}}