Skip to content
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

Respond to 'cancel run' from Dashboard and cancel remaining specs #1691

Open
jennifer-shehane opened this issue May 8, 2018 · 10 comments

Comments

@jennifer-shehane
Copy link
Member

commented May 8, 2018

New button to 'Cancel' run will be added to Dashboard, want to cancel the run and any remaining specs left to run.

Cancel button (only displayed when running):
screen shot 2018-04-17 at 4 19 04 pm

API Issue: https://github.com/cypress-io/cypress-api/issues/455
Dashboard Issue: https://github.com/cypress-io/cypress-dashboard/issues/502

@Dygerati

This comment has been minimized.

Copy link

commented May 31, 2018

+1
I actually have a run now that's been "running" for 19 hours waiting for results. Not sure how I can remove it?

@jennifer-shehane

This comment has been minimized.

Copy link
Member Author

commented May 31, 2018

Yes, this unfortunately didn't make it in 3.0, will be aiming for 3.1 release of this now.

Deleting a run is also a feature. Opened an issue here for that: #1839

@irensoltan

This comment has been minimized.

Copy link

commented Sep 13, 2018

+1
This is totally needed! My test failed in Circle CI, but is still running in Cypress - almost an hour now.

@jennifer-shehane

This comment has been minimized.

Copy link
Member Author

commented Dec 12, 2018

@brian-mann TODO for run cancellation on test runner

  • Test runner should expect 422 RUN_CANCELLED and 422 INSTANCE_CANCELLED (or whatever the API ends up sending and write specific error message:

    This run was cancelled by ...... at ...... To see the results of the run visit ....url

  • When user cancels run in CI or when kills process locally -via SIGKILL, SIGINT, SIGTERM (or something) - could we send a request from the Test Runner to the API to do a POST runs/id/cancel to cancel the run - (may not have cancelledBy in this situation - so may be null)?
@puneetiet

This comment has been minimized.

Copy link

commented Jan 4, 2019

its still not there in 3.1.4. my test are running in dashboard for more than 1.5 hours now

@jennifer-shehane jennifer-shehane modified the milestones: Sprint 15, Sprint 18 Jan 7, 2019

@jennifer-shehane

This comment has been minimized.

Copy link
Member Author

commented Jan 7, 2019

@puneetiet Yes, this run cancellation not been released yet. If the run runs longer than 90 minutes, you should open a new issue because this should not happen.

@dafiber

This comment has been minimized.

Copy link

commented Apr 22, 2019

my tests are running in dashboard more than 22 hours now.. (version 3.2) how I can stop them?

@jennifer-shehane

This comment has been minimized.

Copy link
Member Author

commented Apr 22, 2019

@dafiber This should never happen. If you can, please email extra details to support@cypress.io about your run.

@jorgeautomation

This comment has been minimized.

Copy link

commented Apr 25, 2019

Any news regarding the Cancel button? Thanks!

@DennisLoska

This comment has been minimized.

Copy link

commented May 2, 2019

My question is not 100% related, but is there a way to cancel a run/spec when using the Cypress module API? I have not found anything in the docs which would suggest that. I would like to be able to cancel a run with e.g. cy.cancel(), or do I need to run cypress in a Node child process and end the child process in order to end a running test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.