synpress icon indicating copy to clipboard operation
synpress copied to clipboard

Added sorry cypress support

Open niemam29 opened this issue 3 years ago • 1 comments

This pr uses cy2 to patch the api link for the dashboard with user defined value. By passing urls to env variable CYPRESS_API_URL you can get Synpress to work with sorry-cypress.

If you have installed both cypress and Synpress it's the best to use the same version - cy2 may confuse in which version it should change the URL. If that is not possible you can set CYPRESS_PATH env variable to location of your app.yml in desired cypress library.

By default it will use cypress dashboard.

Also i have added --ciBuildId flag which can be used to identify ci build manually

niemam29 avatar Sep 14 '22 08:09 niemam29

@niemam29 Thanks for contribution heart. Have you tested it? How to run it? What is the command? Also.. is there any customisation needed for CLI to support new flags from cy2 CLI?

I have tested it both on my local network (parallelization on 2 machines) and on github actions. It can be runned like a normal cypress dashboard, by using --record command - the only thing that differs is env variable called CYPRESS_API_URL. If you would pass there for ex. "https://cy.currents.dev" it would use currents dev instead of cypress dashboard About the Cli - I don't think that any changes are necessary, but later i will add a custom flag to pass --ci-build-id which can be used to manually identify a single build in dashboard

niemam29 avatar Sep 15 '22 09:09 niemam29

Hey, there was few concerns raised about this PR but they were never fixed. I'm closing it.

r3kt-eth avatar Aug 04 '23 19:08 r3kt-eth