cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.54k stars 3.2k forks source link

Run only specified testcases in cypress ui #23676

Open d3vc44r opened 2 years ago

d3vc44r commented 2 years ago

What would you like?

Make it possible to execute only specified test cases of a test file in cypress ui.

Why is this needed?

During development it would be nice to execute only specified test cases of a testfile in cypress ui. At the moment this can only be achieved if .only is used inside of a testfile which is not straightforward in comparision to backend unit tests. With this tiny change development experience could be improved.

Other

No response

lmiller1990 commented 2 years ago

This would be a great feature and I'd really like to see it.

I don't think implementation would be too difficult, we do something similar for the Cypress Studio feature.

I will raise this internally as a feature request! The main challenges I see:

  1. UI - how does this look? How to "dismiss" the it.only
  2. Can we have multiple it.only? I'd say so