{"action":"created","issue":{"url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/96","repository_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs","labels_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/96/comments","events_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/96/events","html_url":"https://github.com/nathanboktae/mocha-casperjs/pull/96","id":154931671,"number":96,"title":"Allow specifying opts file & test directory ","user":{"login":"windkomo","id":1193421,"avatar_url":"https://avatars.githubusercontent.com/u/1193421?v=3","gravatar_id":"","url":"https://api.github.com/users/windkomo","html_url":"https://github.com/windkomo","followers_url":"https://api.github.com/users/windkomo/followers","following_url":"https://api.github.com/users/windkomo/following{/other_user}","gists_url":"https://api.github.com/users/windkomo/gists{/gist_id}","starred_url":"https://api.github.com/users/windkomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windkomo/subscriptions","organizations_url":"https://api.github.com/users/windkomo/orgs","repos_url":"https://api.github.com/users/windkomo/repos","events_url":"https://api.github.com/users/windkomo/events{/privacy}","received_events_url":"https://api.github.com/users/windkomo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-15T21:33:54Z","updated_at":"2016-05-27T16:09:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/pulls/96","html_url":"https://github.com/nathanboktae/mocha-casperjs/pull/96","diff_url":"https://github.com/nathanboktae/mocha-casperjs/pull/96.diff","patch_url":"https://github.com/nathanboktae/mocha-casperjs/pull/96.patch"},"body":"Usage :\r\n\r\nOption file path :\r\n\r\n```\r\nmocha-casperjs --opts=path/to/file/file.opts\r\n```\r\n\r\nAdd test directory in the opts file:\r\n\r\n```\r\ntest/casperjs/tests\r\n[other options]\r\n```\r\n\r\nFix #95"},"comment":{"url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/comments/222187630","html_url":"https://github.com/nathanboktae/mocha-casperjs/pull/96#issuecomment-222187630","issue_url":"https://api.github.com/repos/nathanboktae/mocha-casperjs/issues/96","id":222187630,"user":{"login":"nathanboktae","id":1989335,"avatar_url":"https://avatars.githubusercontent.com/u/1989335?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanboktae","html_url":"https://github.com/nathanboktae","followers_url":"https://api.github.com/users/nathanboktae/followers","following_url":"https://api.github.com/users/nathanboktae/following{/other_user}","gists_url":"https://api.github.com/users/nathanboktae/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanboktae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanboktae/subscriptions","organizations_url":"https://api.github.com/users/nathanboktae/orgs","repos_url":"https://api.github.com/users/nathanboktae/repos","events_url":"https://api.github.com/users/nathanboktae/events{/privacy}","received_events_url":"https://api.github.com/users/nathanboktae/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T16:09:07Z","updated_at":"2016-05-27T16:09:07Z","body":"Sorry for not responding earlier but I paused since all the tests failed.\r\n\r\nAlso add a test for this feature with something like\r\n\r\n```coffee-script\r\n      it 'should use an opts file from another location', (done) ->\r\n        fs.writeFileSync 'mocha-casperjs.opts', '--user-agent=wrong-optsfile'\r\n        fs.writeFileSync 'some-other-mocha-casperjs.opts', '--user-agent=some-other-mocha-casperjs-opts'\r\n        runMochaCasperJsTest\r\n          params: ['--reporter=json']\r\n          test: ->\r\n            casper.page.settings.userAgent.should.equal 'some-other-mocha-casperjs-opts'\r\n        , (output, code) ->\r\n          results = JSON.parse output\r\n          results.stats.passes.should.equal 1\r\n          results.stats.failures.should.equal 0\r\n          done()\r\n```"}}
{"actor":{"display_login":"nathanboktae"}}