{"action":"created","issue":{"url":"https://api.github.com/repos/jasmine/jasmine/issues/978","labels_url":"https://api.github.com/repos/jasmine/jasmine/issues/978/labels{/name}","comments_url":"https://api.github.com/repos/jasmine/jasmine/issues/978/comments","events_url":"https://api.github.com/repos/jasmine/jasmine/issues/978/events","html_url":"https://github.com/jasmine/jasmine/issues/978","id":117572860,"number":978,"title":"Passing parameters from Spec to Reporter","user":{"login":"paranoid-android","id":4273160,"avatar_url":"https://avatars.githubusercontent.com/u/4273160?v=3","gravatar_id":"","url":"https://api.github.com/users/paranoid-android","html_url":"https://github.com/paranoid-android","followers_url":"https://api.github.com/users/paranoid-android/followers","following_url":"https://api.github.com/users/paranoid-android/following{/other_user}","gists_url":"https://api.github.com/users/paranoid-android/gists{/gist_id}","starred_url":"https://api.github.com/users/paranoid-android/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paranoid-android/subscriptions","organizations_url":"https://api.github.com/users/paranoid-android/orgs","repos_url":"https://api.github.com/users/paranoid-android/repos","events_url":"https://api.github.com/users/paranoid-android/events{/privacy}","received_events_url":"https://api.github.com/users/paranoid-android/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-18T12:05:12Z","updated_at":"2015-12-01T00:50:02Z","closed_at":"2015-12-01T00:50:02Z","body":"Hello,\r\n\r\nI've been working on a custom reporter that I use from Node. I need the reporter to display more details than are returned in the `specResult` object from a spec. For example, my spec looks like this:\r\n\r\n**spec**\r\n```\r\nit(\"should return parameter values\", function(done) {\r\n    expect(true).toBe(true);\r\n    this.parameter2 = 'anotherValue';\r\n    done();\r\n}, { parameter1:'paramValue' });\r\n```\r\n\r\n**reporter**\r\n```\r\nthis.specDone = function(result) {\r\n  var parameter1 = null; // how do I get result.parameter1\r\n  var parameter2 = null; // how do I get result.parameter2\r\n\r\n  ...\r\n}\r\n```\r\n\r\nI cannot figure out how to pass additional information from a spec to a reporter. In addition to the properties that are currently returned with `result` (i.e. `description`, `fullName`, `passedExpectations`, `failedExpectations`, and `status`), I'd like add two other properties: `properties` and `result`. I'm not having any luck in accomplishing this though.\r\n\r\nThank you to the community for any assistance that can be provided. I personally have the opinion that this would be a valuable addition to the Jasmine in general.\r\n"},"comment":{"url":"https://api.github.com/repos/jasmine/jasmine/issues/comments/160811262","html_url":"https://github.com/jasmine/jasmine/issues/978#issuecomment-160811262","issue_url":"https://api.github.com/repos/jasmine/jasmine/issues/978","id":160811262,"user":{"login":"slackersoft","id":512724,"avatar_url":"https://avatars.githubusercontent.com/u/512724?v=3","gravatar_id":"","url":"https://api.github.com/users/slackersoft","html_url":"https://github.com/slackersoft","followers_url":"https://api.github.com/users/slackersoft/followers","following_url":"https://api.github.com/users/slackersoft/following{/other_user}","gists_url":"https://api.github.com/users/slackersoft/gists{/gist_id}","starred_url":"https://api.github.com/users/slackersoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackersoft/subscriptions","organizations_url":"https://api.github.com/users/slackersoft/orgs","repos_url":"https://api.github.com/users/slackersoft/repos","events_url":"https://api.github.com/users/slackersoft/events{/privacy}","received_events_url":"https://api.github.com/users/slackersoft/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T00:50:02Z","updated_at":"2015-12-01T00:50:02Z","body":"There is no way to pass arbitrary meta data from a spec to reporters. This doesn't sound like something that we're looking to add to the core of jasmine either, so I'm going to close this. Thanks for using jasmine!"}}