bahmutov / cypress-if

Easy conditional if-else logic for your Cypress tests when there is no other way
https://cypress.tips/courses/cypress-plugins
96 stars 12 forks source link

Why does it say "Do not use" in About? #43

Closed papb closed 1 year ago

papb commented 1 year ago

Why does it say "Do not use" in the About section of this GitHub repository?

About

Easy conditional if-else logic for your Cypress testsDo not use

bahmutov commented 1 year ago

Because conditional testing is an anti-pattern in general and you should avoid it if possible

Sent from my iPhone

On Oct 13, 2022, at 12:04, Pedro Augusto de Paula Barbosa @.***> wrote:

 Why does it say "Do not use" in the About section of this GitHub repository?

About

Easy conditional if-else logic for your Cypress testsDo not use

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

papb commented 1 year ago

Hmm interesting. I suggest changing the text to

Easy conditional if-else logic for your Cypress tests, for when you can't avoid conditional testing

And I also suggest adding some information about it in the readme. For example, information on why it is an anti-pattern and why, despite that, this repository exists (I assume it is for a few situations in which the "anti-pattern" is actually acceptable)

bahmutov commented 1 year ago

Updated