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

feat: add support for table driven testing with benchmark.each() #235

Open
mohanraj-r opened this issue Jul 31, 2020 · 1 comment
Open

Comments

@mohanraj-r
Copy link

Add a benchmark.each() similar to jest's it.each() so that scenarios with the same test logic but with different test data can be written without having to repeat code.

In addition to existing primitives such as benchmark.only, benchmark.skip add a benchmark.each(table)(name, fn) to support data/table driven testing.

@mohanraj-r
Copy link
Author

Looking at jest/packages/jest-each at master · facebook/jest guessing it might be non-trivial.

@diervo If you are ok with having this feature I can take a stab at it if you can give some pointers on what changes are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant