Settings

Theme

Write Cypress Tests in Natural Language with Cy.prompt()

cypress.io

13 points by antiloper a month ago · 3 comments

Reader

evacchi a month ago

> This is not just a convenience feature. It is a new way of thinking about test creation that closes the distance between the coverage you need and the code that runs it

Ouff

BinaryIgor a month ago

Sounds pretty powerful, but it's probably better to be used just to generate initial tests and then guide it manually - determinism.

Has anybody tried it and can comment on how well/bad does it work?

  • wk_end a month ago

    The nice thing about this compared to generating tests in advance is that, if your app changes in non-material ways that would otherwise break a test, you don't need to regenerate - the AI will "adapt".

    It's also, arguably, a form of fuzzing, maybe? I guess? Having it be non-deterministic means it might test the same thing in different - ideally all correct - ways, helping to uncover bugs.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection