{"action":"closed","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/1760","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/1760/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/1760/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/1760/events","html_url":"https://github.com/Codeception/Codeception/issues/1760","id":59982347,"number":1760,"title":"Codeception with Codeigniter -- run tests from PHP script","user":{"login":"dtirer","id":639812,"avatar_url":"https://avatars.githubusercontent.com/u/639812?v=3","gravatar_id":"","url":"https://api.github.com/users/dtirer","html_url":"https://github.com/dtirer","followers_url":"https://api.github.com/users/dtirer/followers","following_url":"https://api.github.com/users/dtirer/following{/other_user}","gists_url":"https://api.github.com/users/dtirer/gists{/gist_id}","starred_url":"https://api.github.com/users/dtirer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtirer/subscriptions","organizations_url":"https://api.github.com/users/dtirer/orgs","repos_url":"https://api.github.com/users/dtirer/repos","events_url":"https://api.github.com/users/dtirer/events{/privacy}","received_events_url":"https://api.github.com/users/dtirer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T17:07:37Z","updated_at":"2015-04-09T11:16:14Z","closed_at":"2015-04-09T11:16:14Z","body":"I have a Codeigniter project that uses Codeception for acceptance testing.  I have a 'tools' controller setup in Codeigniter, which I use to store command line methods that perform various utility functions.\r\n\r\nI'm looking to create a method to wrap the build and execution of tests, so that I can change environments and databases all in one command.\r\n\r\nHowever, Codeception becomes unresponsive when I try to run the tests as follows:\r\n\r\n```public function run_tests()\r\n {\r\n        $this->load->database('testing');\r\n        echo shell_exec(\"cd ..; php codecept.phar build\");\r\n        echo shell_exec(\"cd ..; php codecept.phar run\");\r\n }```\r\n\r\nfrom the terminal, I then execute the controller methods:\r\n\r\n`php index.php tools run_tests`\r\n\r\nThe Codeception `build` seems to execute fine, but the `run` command just hangs up with no errors\r\n\r\n"}}