this post was submitted on 17 Sep 2023
77 points (88.9% liked)

Technology

59300 readers
4640 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] realharo@lemm.ee 4 points 1 year ago (2 children)

once you start with a pattern they are mostly repetitive with minor changes

Can't you just turn those into a single parameterized test with the test cases described as data?

[–] kameecoding@lemmy.world 6 points 1 year ago

I mean of course if there is only a given set of variables that changes test-to-test then I do that.

But I meant tests, that are really similar, but the variable that changes or combination of changes is varied enough that you can't parametrize it.

[–] Pantoffel@feddit.de 2 points 1 year ago

Some things you also shouldn't parameterize for the sake of overview and intuitiveness in understand.