Dashboard Url in Reporter #26860
Unanswered
dracahn
asked this question in
Questions and Help
Replies: 1 comment 1 reply
-
I'm not sure if you can directly get the Cypress runUrl in a custom reporter, and I haven't found a way to get the runId directly to recreate the URL with your projectId. But, you can use the Cypress Node.js Module API to launch your test run and get the runUrl. Something like this:
and then (this is a bad hack) you can read the runUrl.json in your custom reporter to get the data you need:
It would be ideal if the runUrl (or runId) were attached the the runner object |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to make a reporter that include the runUrl in the report. I'm hoping to get a link from the report directly to the run in cypress dashboard. Is there any way to retrieve that variable for a reporter? I haven't been able to find it. Specifically: at the end of a run, there's a console log line that says
Recorded Run: https://cloud.cypress.io/projects/{projectId}/runs/{runNumber}
. I would like to put that url in my report.E.G.:
Beta Was this translation helpful? Give feedback.
All reactions