{"action":"created","issue":{"url":"https://api.github.com/repos/drush-ops/drush/issues/1832","labels_url":"https://api.github.com/repos/drush-ops/drush/issues/1832/labels{/name}","comments_url":"https://api.github.com/repos/drush-ops/drush/issues/1832/comments","events_url":"https://api.github.com/repos/drush-ops/drush/issues/1832/events","html_url":"https://github.com/drush-ops/drush/issues/1832","id":119996099,"number":1832,"title":"Running unit tests","user":{"login":"dustinleblanc","id":3948808,"avatar_url":"https://avatars.githubusercontent.com/u/3948808?v=3","gravatar_id":"","url":"https://api.github.com/users/dustinleblanc","html_url":"https://github.com/dustinleblanc","followers_url":"https://api.github.com/users/dustinleblanc/followers","following_url":"https://api.github.com/users/dustinleblanc/following{/other_user}","gists_url":"https://api.github.com/users/dustinleblanc/gists{/gist_id}","starred_url":"https://api.github.com/users/dustinleblanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustinleblanc/subscriptions","organizations_url":"https://api.github.com/users/dustinleblanc/orgs","repos_url":"https://api.github.com/users/dustinleblanc/repos","events_url":"https://api.github.com/users/dustinleblanc/events{/privacy}","received_events_url":"https://api.github.com/users/dustinleblanc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-02T17:37:02Z","updated_at":"2015-12-10T04:12:43Z","closed_at":null,"body":"Hey All,\r\n\r\nI wanted to get into contributing on Drush more and I wanted to start off by getting the test suite to pass on the master branch and I'm having a tough time. Here is my phpunit.xml file:\r\n```\r\n<!-- Copy and rename to phpunit.xml. Customize as needed. -->\r\n<phpunit backupGlobals=\"false\"\r\n    backupStaticAttributes=\"false\"\r\n    syntaxCheck=\"false\"\r\n    bootstrap=\"bootstrap.inc\"\r\n    colors=\"true\">\r\n  <testsuites>\r\n    <testsuite name=\"Drush Test Suite\">\r\n      <directory>.</directory>\r\n    </testsuite>\r\n  </testsuites>\r\n\r\n  <php>\r\n    <!-- These variables may alternatively be set as bash environment variables. -->\r\n\r\n    <!-- Drupal major version to run tests over -->\r\n    <!-- <var name=\"UNISH_DRUPAL_MAJOR_VERSION\" value=\"8\"/> -->\r\n\r\n    <!--Uncomment and edit one of the lines below depending on DB platform.-->\r\n    <!--DB User must have create/drop permissions-->\r\n     <var name=\"UNISH_DB_URL\" value=\"mysql://root:root@127.0.0.1\"/>\r\n    <!-- <var name=\"UNISH_DB_URL\" value=\"pgsql://postgres:@localhost\"/>-->\r\n    <!-- <var name=\"UNISH_DB_URL\" value=\"sqlite://none/of/this/matters\"/> -->\r\n\r\n    <!--User must have write permissions to this directory.-->\r\n    <!--If not supplied, defaults to sys_get_tmp_dir().-->\r\n     <var name=\"UNISH_TMP\" value=\"/tmp\"/>\r\n\r\n    <!--Uncomment the line below if your path to drush differs from `which drush`. Use absolute path.-->\r\n    <var name=\"UNISH_DRUSH\" value=\"/Users/dustin/code/php/drupal/drush/drush\"/>\r\n\r\n    <!--Uncomment to provide a group the user running the tests belong to. This is needed for some filesystem tests. -->\r\n    <var name=\"UNISH_USERGROUP\" value=\"staff\"/>\r\n\r\n    <!-- Uncomment to disable the total runtime and output timeouts for commands run through CommandUnishTestCase::execute().  -->\r\n    <!-- <env name=\"UNISH_NO_TIMEOUTS\" value=\"y\"/> -->\r\n\r\n    <includePath>.</includePath>\r\n  </php>\r\n</phpunit>\r\n```\r\n\r\nFirst little bit of test output:\r\n```\r\n± % ./unish.sh --exclude-group slow                                                                                                                                                                                                                               \r\nPHPUnit 4.8.18 by Sebastian Bergmann and contributors.\r\n\r\n......FSFSI..........FFFF......F..FFFFFFfile_put_contents(/drushrc.php): failed to open stream: Permission denied contextTest.php:62                                                                                                                                                                  [warning]\r\n.file_put_contents(/drushrc.php): failed to open stream: Permission denied contextTest.php:62                                                                                                                                                                  [warning]\r\n.FF.FF....SF.-\r\n```\r\n\r\nSome more stuff fails later but I don't want to clog this with a huge dump\r\n\r\nAny ideas on what I am doing wrong?"},"comment":{"url":"https://api.github.com/repos/drush-ops/drush/issues/comments/163483558","html_url":"https://github.com/drush-ops/drush/issues/1832#issuecomment-163483558","issue_url":"https://api.github.com/repos/drush-ops/drush/issues/1832","id":163483558,"user":{"login":"weitzman","id":7740,"avatar_url":"https://avatars.githubusercontent.com/u/7740?v=3","gravatar_id":"","url":"https://api.github.com/users/weitzman","html_url":"https://github.com/weitzman","followers_url":"https://api.github.com/users/weitzman/followers","following_url":"https://api.github.com/users/weitzman/following{/other_user}","gists_url":"https://api.github.com/users/weitzman/gists{/gist_id}","starred_url":"https://api.github.com/users/weitzman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weitzman/subscriptions","organizations_url":"https://api.github.com/users/weitzman/orgs","repos_url":"https://api.github.com/users/weitzman/repos","events_url":"https://api.github.com/users/weitzman/events{/privacy}","received_events_url":"https://api.github.com/users/weitzman/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T04:12:43Z","updated_at":"2015-12-10T04:12:43Z","body":"Not sure whats wrong. Maybe run with --debug for more info. Otherwise, you gotta step through a failing test class and see whats sick."}}