Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

cannot generate report file in junit format #1032

Closed
jkmurthy opened this issue Jul 4, 2014 · 6 comments
Closed

cannot generate report file in junit format #1032

jkmurthy opened this issue Jul 4, 2014 · 6 comments

Comments

@jkmurthy
Copy link

jkmurthy commented Jul 4, 2014

Followed all suggested solutions listed here but no luck
#60

I have [email protected] and mkdrip installed and my NODE_PATH is all set

// An example configuration file.
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://localhost:4444/wd/hub',
allScriptsTimeout: 30000,
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'firefox'
},

// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['example_spec.js'],

// Options to be passed to Jasmine-node.
onPrepare: function() {
require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter('xmloutput', true, true));
},

// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
}
};


s.trace:
/home/jack/prototype/conf.js:19
jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter('xmloutput', true, true));
^
TypeError: undefined is not a function
at exports.config.onPrepare (/home/jack/prototype/conf.js:19:33)
at Runner.runFilenamesOrFns_ (/home/usr/lib/node_modules/protractor/lib/runner.js:64:9)
at Runner.runTestPreparers (/home/usr/lib/node_modules/protractor/lib/runner.js:91:8)
at runner.controlFlow.execute.then.jasmineNodeOpts (/home/usr/lib/node_modules/protractor/lib/frameworks/jasmine.js:39:12)
at webdriver.promise.ControlFlow.runInNewFrame_ (/home/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1539:20)
at webdriver.promise.ControlFlow.runEventLoop_ (/home/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1404:8)
at wrapper as onTimeout
at Timer.listOnTimeout as ontimeout
==== async task ====
run test preparers
at Object.exports.run (/home/usr/lib/node_modules/protractor/lib/frameworks/jasmine.js:38:24)
at driverprovider
.setupEnv.then.then.then.testResult (/home/usr/lib/node_modules/protractor/lib/runner.js:233:28)
at _fulfilled (/home/usr/lib/node_modules/protractor/node_modules/q/q.js:797:54)
at self.promiseDispatch.done (/home/usr/lib/node_modules/protractor/node_modules/q/q.js:826:30)
at Promise.promise.promiseDispatch (/home/usr/lib/node_modules/protractor/node_modules/q/q.js:759:13)
at /home/usr/lib/node_modules/protractor/node_modules/q/q.js:525:49
at flush (/home/usr/lib/node_modules/protractor/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:423:13)
at Function.Module.runMain (module.js:499:11)

@smahalingam
Copy link

Hope you have jasmine-reporters installed on your machine ?

@jkmurthy
Copy link
Author

jkmurthy commented Jul 7, 2014

Yes i do have [email protected]

@juliemr
Copy link
Member

juliemr commented Jul 7, 2014

jasmine-reporters just updated to work with Jasmine2, which has a different reporter syntax. You'll need to use an old version. Try using [email protected].

@jkmurthy
Copy link
Author

jkmurthy commented Jul 8, 2014

Thanks much Julie. Downgrade to 1.0.0 solved the prob. Hope this will be taken care in FAQ

@jkmurthy jkmurthy closed this as completed Jul 8, 2014
@paweleck
Copy link

paweleck commented Jul 9, 2014

Good to know, wasted 2 days to find out whats the problem.

@juliemr
Copy link
Member

juliemr commented Jul 9, 2014

I'm reopening this to remind myself to change the docs.

@juliemr juliemr reopened this Jul 9, 2014
@juliemr juliemr closed this as completed in 4ee5f0f Jul 9, 2014
samlecuyer pushed a commit to samlecuyer/protractor that referenced this issue Jul 28, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants