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

Native Support for Parameterized Tests (Similar to Pytest) #30479

Open
marvindev2022 opened this issue Oct 28, 2024 · 0 comments
Open

Native Support for Parameterized Tests (Similar to Pytest) #30479

marvindev2022 opened this issue Oct 28, 2024 · 0 comments
Labels
type: feature New feature that does not currently exist

Comments

@marvindev2022
Copy link

What would you like?

I would like to see native support for parameterized tests in Cypress, similar to what is available in Pytest. This feature would allow us to run the same test logic with different sets of inputs and expected results, streamlining the creation of tests with multiple scenarios in a single place.

Why is this needed?

I want this because implementing parameterized tests currently requires manual work, such as custom loops, which makes the code more verbose and less readable. With a native method like cy.parametrize(), it would be possible to reduce code duplication, organize tests more efficiently, and simplify test maintenance.

This feature aligns with widely accepted testing practices in other platforms and would be an advantage for developers already familiar with these patterns in other tools like Pytest.

Other

This feature would bring Cypress even more in line with popular testing frameworks, enabling more developers to maximize the platform and save time when developing tests for complex scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

2 participants