• @realharo@lemm.ee
    link
    fedilink
    English
    410 months ago

    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
      link
      fedilink
      English
      610 months 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
      link
      fedilink
      English
      210 months ago

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