you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 1 year ago* (2 children)

Almost always use parameterized style tests, always have a name field, I don't use full sentences tho, that seems like too much. Don't believe I've ever seen a test like that either

These toy examples feel like strawmen to me

  • source
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    I've seen codebases that had old testValid2 style of test as well as fully fleshed out conversionReturnsNullOnEmptyString style. Working there made me apreciate proper naming. I know different test frameworks in different languages let you name the test separately, but it's a bit of an effort duplication.

  • source
  • parent
  • hideshow 1 child comment