You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I'm not sure how to use this information (I'm still learning some of this stuff). I've tried looking at some of the object I have access to in the custom reporter. I can't find the one with the runUrl.
class MyCustomReporter {
constructor(runner, options) {
runner.once(EVENT_RUN_BEGIN, () => {
console.log('start');
// I'd like to log it here. If I know how to log it here, I can put it where i need it to go.
console.log(`RunUrl: ${someRunUrl}`); // RunUrl: http://{cloudServiceUrl}/run/c30c8cb899fdffc5d3c8f4a288d363c2
})
}
}
cypress-cloud wouldn't provide this information to custom reporters. You'd use the API method run (see documentation) - it will return all the results + the run URL.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to access the runUrl in a reporter. Is there any way to do that? I'm looking for the URL that's used here on this line:
cypress-cloud/packages/cypress-cloud/lib/run.ts
Line 116 in 06a98e3
Beta Was this translation helpful? Give feedback.
All reactions