Hacker News new | ask | show | jobs
by wronglyprepaid 1466 days ago
> It's excellent for quickly writing slightly repetitive test cases;

Ever considered parameterization?

2 comments

Then you have harder to reason about test that can fail in its complex parameter matrix. I think it's okay for test to be a little bit repetitive
> Then you have harder to reason about test that can fail in its complex parameter matrix.

Can you give an example of tests that would be better with repetition than parameterization?

Yes, it writes the different cases out for you. The arguments...