Skip to main content
22 votes

Should I write and commit unit tests for minor changes and bug fixes?

"return users' full names instead of just last names" This implies a necessary application behavior (because if it didn't, who told you this needed to be changed?), which in turn is ...
Flater's user avatar
  • 53k
9 votes
Accepted

Approach to software testing with docker

Different kinds of tests are for different audiences. Those different audiences have different needs. The tests don't care where they are run. They care about the API they are run against and what the ...
candied_orange's user avatar
6 votes

Should I write and commit unit tests for minor changes and bug fixes?

Some posts seem to suggest I should write tests for everything. Is it true or is it a case-by-case basis? This question potentially leads to an over-simplification or at least a way to miss the point ...
Ben Cottrell's user avatar
3 votes

Design a test framework for validating static files

Do these validations make sense? Am I missing a better way of doing it? Both ways involve rewriting the transformation code as a test. Sometimes you’re stuck testing that way but I don’t think you ...
candied_orange's user avatar
2 votes

Should I write and commit unit tests for minor changes and bug fixes?

In this specific case, yes, definitely. In general the default position should be that if you fix a bug, you add a test case which fails before you fix the bug, and succeeds after you fix it. There ...
Michael Kay's user avatar
  • 3,549
2 votes

Should I write and commit unit tests for minor changes and bug fixes?

Did you have a function returning the full name, together with a unit test, before you started? If not then you added a new function and a unit test for it. Did you modify a function returning all ...
gnasher729's user avatar
  • 46.2k
2 votes

Design a test framework for validating static files

I don't think your comparison of these tests with "unit tests" and "integration tests" matches the popular understanding of these terms. A unit test would be a test which takes a ...
Doc Brown's user avatar
  • 210k

Only top scored, non community-wiki answers of a minimum length are eligible