Protractor supports integration with Jasmine reporters. Jasmine reporters have a collection of JavaScript Jasmine reporter classes. We’ll use JUnitXMLReporter which provideds the test execution results in XML format. 
												
																		
					Install Jasmine reporter
npm install -g jasmine-reporters
Configurations
After successful installation configure report in conf.js, “resutls/” is directory where report will be saved,
onPrepare: function() {
file.require(‘jasmine-reporters’);
jasmine.getEnv().addReporter(
                     new jasmine.JUnitXmlReporter(‘results/‘, true, true)
);
Please help me on this im getting the below error
ERROR – failed loading configuration file config.js
D:AutomationServCloudconfig.js:22
onPrepare: function() {
^^^^^^^^^
SyntaxError: Unexpected identifier