-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting 'Custom reporters must export a unique 'reporterName' property' issue while trying to use Custom Reporters. #2077
Comments
You can fix this by adding
|
@andriilazebnyi Thank you so much for your reply. And this goes in the config file? |
@andriilazebnyi Adding the following code in config file did resolve my issue But I want to have a HTML formatted report. Can we do this using Custom Reporter in WebDriverIO or is there a plugin? |
Why don't you use the Allure reporter? |
I did try my hands on the Allure reporter: wdio config: Command Result:
My /allure-report/index.html is an empty file. The Allure menu however appears on left but nothing in the index.html page. |
It's all in the docs 😉 |
The problem
I am getting the following error message while trying to use the Custom Reporters.
My config file:
var CustomReporter = require('./reporter/my.custom.reporter');
exports.config = {
reporters: [CustomReporter],
reporterOptions: {
outputDir: './'
}
}
My.custom.reporter.js contains:
var util = require('util'),
events = require('events');
var CustomReporter = function(options) {
....
}
same as available in the project.
ERROR: Error: Custom reporters must export a unique 'reporterName' property
at Launcher.initReporters
Environment
Can someone help please.
The text was updated successfully, but these errors were encountered: