{"action":"created","issue":{"url":"https://api.github.com/repos/fluxsauce/site_audit/issues/48","labels_url":"https://api.github.com/repos/fluxsauce/site_audit/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/fluxsauce/site_audit/issues/48/comments","events_url":"https://api.github.com/repos/fluxsauce/site_audit/issues/48/events","html_url":"https://github.com/fluxsauce/site_audit/pull/48","id":95420311,"number":48,"title":"Unit tests","user":{"login":"shivanshuag","id":1760403,"avatar_url":"https://avatars.githubusercontent.com/u/1760403?v=3","gravatar_id":"","url":"https://api.github.com/users/shivanshuag","html_url":"https://github.com/shivanshuag","followers_url":"https://api.github.com/users/shivanshuag/followers","following_url":"https://api.github.com/users/shivanshuag/following{/other_user}","gists_url":"https://api.github.com/users/shivanshuag/gists{/gist_id}","starred_url":"https://api.github.com/users/shivanshuag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivanshuag/subscriptions","organizations_url":"https://api.github.com/users/shivanshuag/orgs","repos_url":"https://api.github.com/users/shivanshuag/repos","events_url":"https://api.github.com/users/shivanshuag/events{/privacy}","received_events_url":"https://api.github.com/users/shivanshuag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"fluxsauce","id":976391,"avatar_url":"https://avatars.githubusercontent.com/u/976391?v=3","gravatar_id":"","url":"https://api.github.com/users/fluxsauce","html_url":"https://github.com/fluxsauce","followers_url":"https://api.github.com/users/fluxsauce/followers","following_url":"https://api.github.com/users/fluxsauce/following{/other_user}","gists_url":"https://api.github.com/users/fluxsauce/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxsauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxsauce/subscriptions","organizations_url":"https://api.github.com/users/fluxsauce/orgs","repos_url":"https://api.github.com/users/fluxsauce/repos","events_url":"https://api.github.com/users/fluxsauce/events{/privacy}","received_events_url":"https://api.github.com/users/fluxsauce/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/fluxsauce/site_audit/milestones/12","html_url":"https://github.com/fluxsauce/site_audit/milestones/GSoC%202015%20-%20Unit%20testing","labels_url":"https://api.github.com/repos/fluxsauce/site_audit/milestones/12/labels","id":1086834,"number":12,"title":"GSoC 2015 - Unit testing","description":"","creator":{"login":"fluxsauce","id":976391,"avatar_url":"https://avatars.githubusercontent.com/u/976391?v=3","gravatar_id":"","url":"https://api.github.com/users/fluxsauce","html_url":"https://github.com/fluxsauce","followers_url":"https://api.github.com/users/fluxsauce/followers","following_url":"https://api.github.com/users/fluxsauce/following{/other_user}","gists_url":"https://api.github.com/users/fluxsauce/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxsauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxsauce/subscriptions","organizations_url":"https://api.github.com/users/fluxsauce/orgs","repos_url":"https://api.github.com/users/fluxsauce/repos","events_url":"https://api.github.com/users/fluxsauce/events{/privacy}","received_events_url":"https://api.github.com/users/fluxsauce/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-04-28T05:35:47Z","updated_at":"2015-07-20T08:29:03Z","due_on":"2015-07-19T04:00:00Z","closed_at":null},"comments":2,"created_at":"2015-07-16T12:10:42Z","updated_at":"2015-07-27T16:51:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fluxsauce/site_audit/pulls/48","html_url":"https://github.com/fluxsauce/site_audit/pull/48","diff_url":"https://github.com/fluxsauce/site_audit/pull/48.diff","patch_url":"https://github.com/fluxsauce/site_audit/pull/48.patch"},"body":"Issue #42 \r\nInstruction to run the tests\r\n* Export the environment variable `UNISH_DB_URL=mysql://[username]:[password]@127.0.0.1` with the correct username and password for PHPUnit to use for testing.\r\n* Make sure PHPUnit is installed and in the PATH.\r\n* Run the script `./run-tests-drush.sh` from inside the `site_audit` directory. This will run all the tests.\r\n* To run the tests selectively, run `./run-tests-drush.sh --filter=\"*Extensions*\" tests` where `*Extensions*` is the regex matching the class name of tests for the extension report."},"comment":{"url":"https://api.github.com/repos/fluxsauce/site_audit/issues/comments/125270115","html_url":"https://github.com/fluxsauce/site_audit/pull/48#issuecomment-125270115","issue_url":"https://api.github.com/repos/fluxsauce/site_audit/issues/48","id":125270115,"user":{"login":"fluxsauce","id":976391,"avatar_url":"https://avatars.githubusercontent.com/u/976391?v=3","gravatar_id":"","url":"https://api.github.com/users/fluxsauce","html_url":"https://github.com/fluxsauce","followers_url":"https://api.github.com/users/fluxsauce/followers","following_url":"https://api.github.com/users/fluxsauce/following{/other_user}","gists_url":"https://api.github.com/users/fluxsauce/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxsauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxsauce/subscriptions","organizations_url":"https://api.github.com/users/fluxsauce/orgs","repos_url":"https://api.github.com/users/fluxsauce/repos","events_url":"https://api.github.com/users/fluxsauce/events{/privacy}","received_events_url":"https://api.github.com/users/fluxsauce/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T16:51:55Z","updated_at":"2015-07-27T16:51:55Z","body":"```bash\r\njon@Decker ~/projects/site_audit (unit-tests) $ ./test.sh\r\n./test.sh: line 32: phpunit: command not found\r\njon@Decker ~/projects/site_audit (unit-tests) $ ls -la vendor/bin/\r\ntotal 24\r\ndrwxr-xr-x   5 jon  staff  170 Jul 27 09:49 .\r\ndrwxr-xr-x  13 jon  staff  442 Jul 27 09:49 ..\r\nlrwxr-xr-x   1 jon  staff   43 Jul  7 10:46 phpcbf -> ../squizlabs/php_codesniffer/scripts/phpcbf\r\nlrwxr-xr-x   1 jon  staff   42 Jul  7 10:46 phpcs -> ../squizlabs/php_codesniffer/scripts/phpcs\r\nlrwxr-xr-x   1 jon  staff   26 Jul 27 09:49 phpunit -> ../phpunit/phpunit/phpunit\r\n```\r\n\r\nSimilar to `phpcs.sh`, check to see if `phpunit` is installed in `/vendor/bin` and abort if it's not. Only use the version of `phpunit` that is installed with Composer in the local directory."}}