Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 2
    Comments have been moved to chat; please do not continue the discussion here. Before posting a comment below this one, please review the purposes of comments. Comments that do not request clarification or suggest improvements usually belong as an answer, on Software Engineering Meta, or in Software Engineering Chat. Comments continuing discussion may be removed. Commented Jun 15, 2023 at 12:43
  • 3
    The real value of a test is to demonstrate that a bug has been fixed. And does not come back later. Commented Jun 17, 2023 at 9:17
  • @ThorbjørnRavnAndersen why would the bug "come back later"? Isn't the whole point of a unit test, to just test the unit, isolated from ANY external dependencies. If you don't touch the unit, why would the bug come back, aren't computers deterministic? Is it to assert that you didn't change the initial behavior of the function for any future developers (including yourself)? These may be silly questions, but honestly if someone asked me I wouldn't be able to answer them! Commented May 20 at 19:19
  • 1
    @Rockstar5645 regressions happen. Merge conflicts. Git force pushes. Etc Commented May 21 at 17:41