This repository was archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
cannot generate report file in junit format #1032
Labels
Comments
Hope you have jasmine-reporters installed on your machine ? |
Yes i do have [email protected] |
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]. |
Thanks much Julie. Downgrade to 1.0.0 solved the prob. Hope this will be taken care in FAQ |
Good to know, wasted 2 days to find out whats the problem. |
I'm reopening this to remind myself to change the docs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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)
The text was updated successfully, but these errors were encountered: