Closed adityagautam closed 4 months ago
Hi @adityagautam ! You can just not provide the RP reporter in wdio config based on some parameter (e.g. some ENV identifier). Hope this helps!
Hi @adityagautam ! I mean smth like this
// wdio.conf.js
exports.config = {
// ...
reporters: isLocal ? [] : [[Reporter, rpConfig]],
// ...
};
Let me know if this helps!
Hi @adityagautam ! Were you able to check out my suggestion? Is this issue still relevant for you?
I guess it won't work and will result in error. reporters: isLocal ? [] : [[Reporter, rpConfig]],
try following
reporters: isLocal ? 'spec' : [[Reporter, rpConfig]],
I will close this ticket, feel free to open a new one if you have any questions.
What is the correct way to disable sending test results to report portal during local test execution.