{"action":"opened","issue":{"url":"https://api.github.com/repos/mllrsohn/gulp-protractor/issues/51","labels_url":"https://api.github.com/repos/mllrsohn/gulp-protractor/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/mllrsohn/gulp-protractor/issues/51/comments","events_url":"https://api.github.com/repos/mllrsohn/gulp-protractor/issues/51/events","html_url":"https://github.com/mllrsohn/gulp-protractor/issues/51","id":55881665,"number":51,"title":"Ignoring onPrepare in my protractor config file","user":{"login":"jdann","id":10744488,"avatar_url":"https://avatars.githubusercontent.com/u/10744488?v=3","gravatar_id":"","url":"https://api.github.com/users/jdann","html_url":"https://github.com/jdann","followers_url":"https://api.github.com/users/jdann/followers","following_url":"https://api.github.com/users/jdann/following{/other_user}","gists_url":"https://api.github.com/users/jdann/gists{/gist_id}","starred_url":"https://api.github.com/users/jdann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdann/subscriptions","organizations_url":"https://api.github.com/users/jdann/orgs","repos_url":"https://api.github.com/users/jdann/repos","events_url":"https://api.github.com/users/jdann/events{/privacy}","received_events_url":"https://api.github.com/users/jdann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-29T10:25:46Z","updated_at":"2015-01-29T10:25:46Z","closed_at":null,"body":"I have the following in my protractor config file. When I run the file locally it works, but when I call the config file using gulp-protractor it ignores it - how do I configure it to call it?\r\n\r\nvar HtmlReporter = require('protractor-html-screenshot-reporter');\r\n\r\n  onPrepare: function() {\r\n\t// Add a screenshot reporter and store screenshots to `/results`:\r\n\tjasmine.getEnv().addReporter(new HtmlReporter({\r\n\t\t\tbaseDirectory: '../test/e2e/results'\r\n\t\t, takeScreenShotsForSkippedSpecs: true\r\n\t\t, takeScreenShotsOnlyForFailedSpecs: true\r\n\t}));\r\n  }"}}