{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/104","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/104/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/104/events","html_url":"https://github.com/facebook/jest/issues/104","id":39427744,"number":104,"title":"JUnit XML output for Continuous Integration w/ Jenkins","user":{"login":"palcu","id":772220,"avatar_url":"https://avatars.githubusercontent.com/u/772220?v=3","gravatar_id":"","url":"https://api.github.com/users/palcu","html_url":"https://github.com/palcu","followers_url":"https://api.github.com/users/palcu/followers","following_url":"https://api.github.com/users/palcu/following{/other_user}","gists_url":"https://api.github.com/users/palcu/gists{/gist_id}","starred_url":"https://api.github.com/users/palcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palcu/subscriptions","organizations_url":"https://api.github.com/users/palcu/orgs","repos_url":"https://api.github.com/users/palcu/repos","events_url":"https://api.github.com/users/palcu/events{/privacy}","received_events_url":"https://api.github.com/users/palcu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2014-08-04T14:51:33Z","updated_at":"2016-07-29T16:12:54Z","closed_at":"2015-10-16T00:32:44Z","body":"I have been trying to set up Jest on our Continuous Integration servers that run Jenkins. Even though Jest is built on top of Jasmine, I could not integrate it with [jasmine-reporters](https://github.com/larrymyers/jasmine-reporters).\r\n\r\nI've used the [branch](https://github.com/larrymyers/jasmine-reporters/tree/jasmine1.x) that supports Jasmine 1.3. You can install it with `npm install jasmine-reporters@~1.0.0`.\r\n\r\nMy `package.json` has:\r\n\r\n```json\r\n  \"jest\": {\r\n    \"setupTestFrameworkScriptFile\": \"<rootDir>/tests/unit/setup-jasmine-env.js\",\r\n...\r\n``` \r\n\r\nAnd in `setup-jasmine-env.js` I have:\r\n\r\n```js\r\nrequire('jasmine-reporters');\r\n\r\njasmine.VERBOSE = true;\r\n\r\njasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter({\r\n  savePath: \"output/\"\r\n}));\r\n```\r\n\r\nThe error I get is `NodeJS attempt: Arguments to path.join must be strings` or `NodeJS attempt: Object [object Object] has no method 'join'`. I've tried to debug it, but unfortunately you cannot set a debugger in a Jest test.\r\n\r\nIs there a way I can make Jest work on Jenkins?"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/236223430","html_url":"https://github.com/facebook/jest/issues/104#issuecomment-236223430","issue_url":"https://api.github.com/repos/facebook/jest/issues/104","id":236223430,"user":{"login":"dmitriiabramov","id":940133,"avatar_url":"https://avatars.githubusercontent.com/u/940133?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitriiabramov","html_url":"https://github.com/dmitriiabramov","followers_url":"https://api.github.com/users/dmitriiabramov/followers","following_url":"https://api.github.com/users/dmitriiabramov/following{/other_user}","gists_url":"https://api.github.com/users/dmitriiabramov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitriiabramov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitriiabramov/subscriptions","organizations_url":"https://api.github.com/users/dmitriiabramov/orgs","repos_url":"https://api.github.com/users/dmitriiabramov/repos","events_url":"https://api.github.com/users/dmitriiabramov/events{/privacy}","received_events_url":"https://api.github.com/users/dmitriiabramov/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T16:12:54Z","updated_at":"2016-07-29T16:12:54Z","body":"@noahpeters our internal reporters are here https://github.com/facebook/jest/tree/master/packages/jest-cli/src/reporters\r\nbut the thing is.. right now we don't have a mechanism to configure which reporters are used by jest without dealing with jest internals. As soon as we get that done, we'll be able to use any custom reporting system with jest"}}
{"actor":{"display_login":"dmitriiabramov"}}