{"action":"created","comment":{"url":"https://api.github.com/repos/qreal/qreal/pulls/comments/51593305","id":51593305,"diff_hunk":"@@ -0,0 +1,118 @@\n+/* Copyright 2015 QReal Research Group\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License. */\n+\n+#pragma once\n+\n+#include <QtCore/QStringList>\n+#include <gtest/gtest.h>\n+\n+#include \"qrgui/mainWindow/mainWindow.h\"\n+\n+namespace guiTesting {\n+\n+class TestAgent;\n+\n+/// Test suite for standard qReal GUI\n+/// @warning Test suite can work incorrectly in hidden mode (e.g. scripts are running during ur work in Qt SDK)\n+/// @warning Segmantation fault in a single test crushes all tests\n+/// @warning Dont forget write reachedEndOfScript(); before quit() if u wanna quit application by himself\n+/// @note Either use from common.js: quit(), quitWithoutSave(), quitWithSave().\n+/// @note Or just leave the app at the quit()-able state\n+class QRealGuiTests : public testing::Test\n+{\n+protected:\n+\t/// SetUp and TearDown are calling before/after every test\n+\tvoid SetUp() override;\n+\tvoid TearDown() override;\n+\n+\t/// start evaluating \\a script\n+\t/// @note Should be invoked once for every TEST\n+\tvoid run(const QString &script);\n+\n+\t/// adds common scripts in list of scripts evaluating before main script evaluating\n+\t/// @note u can include several needed files\n+\t/// @note all including names should be relative like \"common.js\"\n+\tvoid includeCommonScript(const QString &relativeFileName);\n+\n+\t/// adds common scripts in list of scripts evaluating before main script evaluating\n+\t/// @note u can include several needed files\n+\t/// @note all including names should be relative like \"common.js\"\n+\tvoid includeCommonScript(const QStringList &fileList);\n+\n+\t/// abort evaluating and close the program with the freeze code\n+\tvoid failTest();\n+\n+\t/// @returns folder name with .js scripts for the test suite\n+\tQString getScriptFolderName() const;\n+\t/// set up folder name in \\a folder. Just the folder name (without the other path)","path":"qrtest/unitTests/guiTests/qRealGuiTests.h","position":58,"original_position":58,"commit_id":"32ef8ec69b3b9c5323b50382f8314e669b13dfbe","original_commit_id":"32ef8ec69b3b9c5323b50382f8314e669b13dfbe","user":{"login":"dvvrd","id":734254,"avatar_url":"https://avatars.githubusercontent.com/u/734254?v=3","gravatar_id":"","url":"https://api.github.com/users/dvvrd","html_url":"https://github.com/dvvrd","followers_url":"https://api.github.com/users/dvvrd/followers","following_url":"https://api.github.com/users/dvvrd/following{/other_user}","gists_url":"https://api.github.com/users/dvvrd/gists{/gist_id}","starred_url":"https://api.github.com/users/dvvrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvvrd/subscriptions","organizations_url":"https://api.github.com/users/dvvrd/orgs","repos_url":"https://api.github.com/users/dvvrd/repos","events_url":"https://api.github.com/users/dvvrd/events{/privacy}","received_events_url":"https://api.github.com/users/dvvrd/received_events","type":"User","site_admin":false},"body":"пустая строчка безнадежно забыта","created_at":"2016-02-02T16:33:08Z","updated_at":"2016-02-02T16:33:08Z","html_url":"https://github.com/qreal/qreal/pull/1607#discussion_r51593305","pull_request_url":"https://api.github.com/repos/qreal/qreal/pulls/1607","_links":{"self":{"href":"https://api.github.com/repos/qreal/qreal/pulls/comments/51593305"},"html":{"href":"https://github.com/qreal/qreal/pull/1607#discussion_r51593305"},"pull_request":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1607"}}},"pull_request":{"url":"https://api.github.com/repos/qreal/qreal/pulls/1607","id":45686929,"html_url":"https://github.com/qreal/qreal/pull/1607","diff_url":"https://github.com/qreal/qreal/pull/1607.diff","patch_url":"https://github.com/qreal/qreal/pull/1607.patch","issue_url":"https://api.github.com/repos/qreal/qreal/issues/1607","number":1607,"state":"open","locked":false,"title":"improved ScriptAPI + implemented guiTests + test coverage statistic program done","user":{"login":"Kirill-NiK","id":1159821,"avatar_url":"https://avatars.githubusercontent.com/u/1159821?v=3","gravatar_id":"","url":"https://api.github.com/users/Kirill-NiK","html_url":"https://github.com/Kirill-NiK","followers_url":"https://api.github.com/users/Kirill-NiK/followers","following_url":"https://api.github.com/users/Kirill-NiK/following{/other_user}","gists_url":"https://api.github.com/users/Kirill-NiK/gists{/gist_id}","starred_url":"https://api.github.com/users/Kirill-NiK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kirill-NiK/subscriptions","organizations_url":"https://api.github.com/users/Kirill-NiK/orgs","repos_url":"https://api.github.com/users/Kirill-NiK/repos","events_url":"https://api.github.com/users/Kirill-NiK/events{/privacy}","received_events_url":"https://api.github.com/users/Kirill-NiK/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-22T16:39:14Z","updated_at":"2016-02-02T16:33:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7920999ceba3e46bc4b2773f03a7cc8e907f42cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qreal/qreal/pulls/1607/commits","review_comments_url":"https://api.github.com/repos/qreal/qreal/pulls/1607/comments","review_comment_url":"https://api.github.com/repos/qreal/qreal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qreal/qreal/issues/1607/comments","statuses_url":"https://api.github.com/repos/qreal/qreal/statuses/32ef8ec69b3b9c5323b50382f8314e669b13dfbe","head":{"label":"Kirill-NiK:master","ref":"master","sha":"32ef8ec69b3b9c5323b50382f8314e669b13dfbe","user":{"login":"Kirill-NiK","id":1159821,"avatar_url":"https://avatars.githubusercontent.com/u/1159821?v=3","gravatar_id":"","url":"https://api.github.com/users/Kirill-NiK","html_url":"https://github.com/Kirill-NiK","followers_url":"https://api.github.com/users/Kirill-NiK/followers","following_url":"https://api.github.com/users/Kirill-NiK/following{/other_user}","gists_url":"https://api.github.com/users/Kirill-NiK/gists{/gist_id}","starred_url":"https://api.github.com/users/Kirill-NiK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kirill-NiK/subscriptions","organizations_url":"https://api.github.com/users/Kirill-NiK/orgs","repos_url":"https://api.github.com/users/Kirill-NiK/repos","events_url":"https://api.github.com/users/Kirill-NiK/events{/privacy}","received_events_url":"https://api.github.com/users/Kirill-NiK/received_events","type":"User","site_admin":false},"repo":{"id":39894481,"name":"qreal","full_name":"Kirill-NiK/qreal","owner":{"login":"Kirill-NiK","id":1159821,"avatar_url":"https://avatars.githubusercontent.com/u/1159821?v=3","gravatar_id":"","url":"https://api.github.com/users/Kirill-NiK","html_url":"https://github.com/Kirill-NiK","followers_url":"https://api.github.com/users/Kirill-NiK/followers","following_url":"https://api.github.com/users/Kirill-NiK/following{/other_user}","gists_url":"https://api.github.com/users/Kirill-NiK/gists{/gist_id}","starred_url":"https://api.github.com/users/Kirill-NiK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kirill-NiK/subscriptions","organizations_url":"https://api.github.com/users/Kirill-NiK/orgs","repos_url":"https://api.github.com/users/Kirill-NiK/repos","events_url":"https://api.github.com/users/Kirill-NiK/events{/privacy}","received_events_url":"https://api.github.com/users/Kirill-NiK/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kirill-NiK/qreal","description":"CASE and metaCASE system","fork":true,"url":"https://api.github.com/repos/Kirill-NiK/qreal","forks_url":"https://api.github.com/repos/Kirill-NiK/qreal/forks","keys_url":"https://api.github.com/repos/Kirill-NiK/qreal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kirill-NiK/qreal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kirill-NiK/qreal/teams","hooks_url":"https://api.github.com/repos/Kirill-NiK/qreal/hooks","issue_events_url":"https://api.github.com/repos/Kirill-NiK/qreal/issues/events{/number}","events_url":"https://api.github.com/repos/Kirill-NiK/qreal/events","assignees_url":"https://api.github.com/repos/Kirill-NiK/qreal/assignees{/user}","branches_url":"https://api.github.com/repos/Kirill-NiK/qreal/branches{/branch}","tags_url":"https://api.github.com/repos/Kirill-NiK/qreal/tags","blobs_url":"https://api.github.com/repos/Kirill-NiK/qreal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kirill-NiK/qreal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kirill-NiK/qreal/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kirill-NiK/qreal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kirill-NiK/qreal/statuses/{sha}","languages_url":"https://api.github.com/repos/Kirill-NiK/qreal/languages","stargazers_url":"https://api.github.com/repos/Kirill-NiK/qreal/stargazers","contributors_url":"https://api.github.com/repos/Kirill-NiK/qreal/contributors","subscribers_url":"https://api.github.com/repos/Kirill-NiK/qreal/subscribers","subscription_url":"https://api.github.com/repos/Kirill-NiK/qreal/subscription","commits_url":"https://api.github.com/repos/Kirill-NiK/qreal/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kirill-NiK/qreal/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kirill-NiK/qreal/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kirill-NiK/qreal/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kirill-NiK/qreal/contents/{+path}","compare_url":"https://api.github.com/repos/Kirill-NiK/qreal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kirill-NiK/qreal/merges","archive_url":"https://api.github.com/repos/Kirill-NiK/qreal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kirill-NiK/qreal/downloads","issues_url":"https://api.github.com/repos/Kirill-NiK/qreal/issues{/number}","pulls_url":"https://api.github.com/repos/Kirill-NiK/qreal/pulls{/number}","milestones_url":"https://api.github.com/repos/Kirill-NiK/qreal/milestones{/number}","notifications_url":"https://api.github.com/repos/Kirill-NiK/qreal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kirill-NiK/qreal/labels{/name}","releases_url":"https://api.github.com/repos/Kirill-NiK/qreal/releases{/id}","deployments_url":"https://api.github.com/repos/Kirill-NiK/qreal/deployments","created_at":"2015-07-29T13:21:10Z","updated_at":"2015-07-29T13:21:18Z","pushed_at":"2015-09-22T16:34:56Z","git_url":"git://github.com/Kirill-NiK/qreal.git","ssh_url":"git@github.com:Kirill-NiK/qreal.git","clone_url":"https://github.com/Kirill-NiK/qreal.git","svn_url":"https://github.com/Kirill-NiK/qreal","homepage":"","size":114215,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"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":"master"}},"base":{"label":"qreal:master","ref":"master","sha":"ee23c77268daac1168d216d8c164887053698cf3","user":{"login":"qreal","id":706806,"avatar_url":"https://avatars.githubusercontent.com/u/706806?v=3","gravatar_id":"","url":"https://api.github.com/users/qreal","html_url":"https://github.com/qreal","followers_url":"https://api.github.com/users/qreal/followers","following_url":"https://api.github.com/users/qreal/following{/other_user}","gists_url":"https://api.github.com/users/qreal/gists{/gist_id}","starred_url":"https://api.github.com/users/qreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qreal/subscriptions","organizations_url":"https://api.github.com/users/qreal/orgs","repos_url":"https://api.github.com/users/qreal/repos","events_url":"https://api.github.com/users/qreal/events{/privacy}","received_events_url":"https://api.github.com/users/qreal/received_events","type":"Organization","site_admin":false},"repo":{"id":1563281,"name":"qreal","full_name":"qreal/qreal","owner":{"login":"qreal","id":706806,"avatar_url":"https://avatars.githubusercontent.com/u/706806?v=3","gravatar_id":"","url":"https://api.github.com/users/qreal","html_url":"https://github.com/qreal","followers_url":"https://api.github.com/users/qreal/followers","following_url":"https://api.github.com/users/qreal/following{/other_user}","gists_url":"https://api.github.com/users/qreal/gists{/gist_id}","starred_url":"https://api.github.com/users/qreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qreal/subscriptions","organizations_url":"https://api.github.com/users/qreal/orgs","repos_url":"https://api.github.com/users/qreal/repos","events_url":"https://api.github.com/users/qreal/events{/privacy}","received_events_url":"https://api.github.com/users/qreal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qreal/qreal","description":"CASE and metaCASE system","fork":false,"url":"https://api.github.com/repos/qreal/qreal","forks_url":"https://api.github.com/repos/qreal/qreal/forks","keys_url":"https://api.github.com/repos/qreal/qreal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qreal/qreal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qreal/qreal/teams","hooks_url":"https://api.github.com/repos/qreal/qreal/hooks","issue_events_url":"https://api.github.com/repos/qreal/qreal/issues/events{/number}","events_url":"https://api.github.com/repos/qreal/qreal/events","assignees_url":"https://api.github.com/repos/qreal/qreal/assignees{/user}","branches_url":"https://api.github.com/repos/qreal/qreal/branches{/branch}","tags_url":"https://api.github.com/repos/qreal/qreal/tags","blobs_url":"https://api.github.com/repos/qreal/qreal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qreal/qreal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qreal/qreal/git/refs{/sha}","trees_url":"https://api.github.com/repos/qreal/qreal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qreal/qreal/statuses/{sha}","languages_url":"https://api.github.com/repos/qreal/qreal/languages","stargazers_url":"https://api.github.com/repos/qreal/qreal/stargazers","contributors_url":"https://api.github.com/repos/qreal/qreal/contributors","subscribers_url":"https://api.github.com/repos/qreal/qreal/subscribers","subscription_url":"https://api.github.com/repos/qreal/qreal/subscription","commits_url":"https://api.github.com/repos/qreal/qreal/commits{/sha}","git_commits_url":"https://api.github.com/repos/qreal/qreal/git/commits{/sha}","comments_url":"https://api.github.com/repos/qreal/qreal/comments{/number}","issue_comment_url":"https://api.github.com/repos/qreal/qreal/issues/comments{/number}","contents_url":"https://api.github.com/repos/qreal/qreal/contents/{+path}","compare_url":"https://api.github.com/repos/qreal/qreal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qreal/qreal/merges","archive_url":"https://api.github.com/repos/qreal/qreal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qreal/qreal/downloads","issues_url":"https://api.github.com/repos/qreal/qreal/issues{/number}","pulls_url":"https://api.github.com/repos/qreal/qreal/pulls{/number}","milestones_url":"https://api.github.com/repos/qreal/qreal/milestones{/number}","notifications_url":"https://api.github.com/repos/qreal/qreal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qreal/qreal/labels{/name}","releases_url":"https://api.github.com/repos/qreal/qreal/releases{/id}","deployments_url":"https://api.github.com/repos/qreal/qreal/deployments","created_at":"2011-04-03T15:38:06Z","updated_at":"2016-01-26T17:41:14Z","pushed_at":"2016-02-02T15:27:00Z","git_url":"git://github.com/qreal/qreal.git","ssh_url":"git@github.com:qreal/qreal.git","clone_url":"https://github.com/qreal/qreal.git","svn_url":"https://github.com/qreal/qreal","homepage":"","size":127837,"stargazers_count":41,"watchers_count":41,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":156,"forks":80,"open_issues":156,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1607"},"html":{"href":"https://github.com/qreal/qreal/pull/1607"},"issue":{"href":"https://api.github.com/repos/qreal/qreal/issues/1607"},"comments":{"href":"https://api.github.com/repos/qreal/qreal/issues/1607/comments"},"review_comments":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1607/comments"},"review_comment":{"href":"https://api.github.com/repos/qreal/qreal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1607/commits"},"statuses":{"href":"https://api.github.com/repos/qreal/qreal/statuses/32ef8ec69b3b9c5323b50382f8314e669b13dfbe"}}}}