{"action":"created","issue":{"url":"https://api.github.com/repos/ziyasal/vscode-open-in-github/issues/37","repository_url":"https://api.github.com/repos/ziyasal/vscode-open-in-github","labels_url":"https://api.github.com/repos/ziyasal/vscode-open-in-github/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/ziyasal/vscode-open-in-github/issues/37/comments","events_url":"https://api.github.com/repos/ziyasal/vscode-open-in-github/issues/37/events","html_url":"https://github.com/ziyasal/vscode-open-in-github/pull/37","id":171914672,"number":37,"title":"Add automated tests and TravisCI test running","user":{"login":"gdziadkiewicz","id":8547855,"avatar_url":"https://avatars.githubusercontent.com/u/8547855?v=3","gravatar_id":"","url":"https://api.github.com/users/gdziadkiewicz","html_url":"https://github.com/gdziadkiewicz","followers_url":"https://api.github.com/users/gdziadkiewicz/followers","following_url":"https://api.github.com/users/gdziadkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/gdziadkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/gdziadkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdziadkiewicz/subscriptions","organizations_url":"https://api.github.com/users/gdziadkiewicz/orgs","repos_url":"https://api.github.com/users/gdziadkiewicz/repos","events_url":"https://api.github.com/users/gdziadkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/gdziadkiewicz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-18T14:27:48Z","updated_at":"2016-08-18T15:18:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ziyasal/vscode-open-in-github/pulls/37","html_url":"https://github.com/ziyasal/vscode-open-in-github/pull/37","diff_url":"https://github.com/ziyasal/vscode-open-in-github/pull/37.diff","patch_url":"https://github.com/ziyasal/vscode-open-in-github/pull/37.patch"},"body":"## What has been done?\r\n- Add automated tests for line and file on master branch\r\n- Add launch tests task(used to run tests from vscode)\r\n- npm test working for both Windows and Linux/OS X\r\n\r\n## How has it been done?\r\nI have added fake repo to the repo(`.git` had to be renamed). The tests start from the fake repo, \"activate\" it by renaming `git` to `.git`, do their work and rename the directory back. The npm test fix (as provided in documentation it work only for Linux and OS X) I have added specific scripts for Windows and Linux/OS X . `testScript.js` decides which script to call. Lauch tests is pretty standard(the only \"uncommon\" thing is specifying workspace).\r\n\r\n-----\r\nLink to test results: https://travis-ci.org/gdziadkiewicz/vscode-open-in-github/builds/153280888\r\n\r\n@ziyasal  You will have to enable TravisCi  on the project and add badges to README.md after merging it :)\r\n\r\n------\r\nI'm open to refactor suggestions as I am not quite pleased with the feel of the tests code."},"comment":{"url":"https://api.github.com/repos/ziyasal/vscode-open-in-github/issues/comments/240756779","html_url":"https://github.com/ziyasal/vscode-open-in-github/pull/37#issuecomment-240756779","issue_url":"https://api.github.com/repos/ziyasal/vscode-open-in-github/issues/37","id":240756779,"user":{"login":"ziyasal","id":1651945,"avatar_url":"https://avatars.githubusercontent.com/u/1651945?v=3","gravatar_id":"","url":"https://api.github.com/users/ziyasal","html_url":"https://github.com/ziyasal","followers_url":"https://api.github.com/users/ziyasal/followers","following_url":"https://api.github.com/users/ziyasal/following{/other_user}","gists_url":"https://api.github.com/users/ziyasal/gists{/gist_id}","starred_url":"https://api.github.com/users/ziyasal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziyasal/subscriptions","organizations_url":"https://api.github.com/users/ziyasal/orgs","repos_url":"https://api.github.com/users/ziyasal/repos","events_url":"https://api.github.com/users/ziyasal/events{/privacy}","received_events_url":"https://api.github.com/users/ziyasal/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T15:18:46Z","updated_at":"2016-08-18T15:18:46Z","body":"Hey @gdziadkiewicz thank you, great job! 👍 "}}
{"actor":{"display_login":"ziyasal"}}