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.

Required fields*

4
  • 1
    Good unit tests actually do test behaviour (in a GWT style) but you're right - they don't go across layers. Consider also that it perfectly possible to have unit tests without classes (in non-OO languages). Commented Mar 23, 2018 at 10:12
  • "There is a school of thought that a unit test tests some behaviour across layers but this isn't correct". This is a nonsense statement. You are not gifted with the absolute right to say whether another's opinion on a subjective matter is correct or not. You are free to disagree, but that doesn't make it incorrect. I like the FIRST acronym though. Swap out "Independent" and replace with "Isolated" and it's an excellent set of guidelines to good unit tests. Commented Mar 23, 2018 at 10:16
  • 1
    @DavidArno "Swap out "Independent" and replace with "Isolated"" I'd vote to keep both unfortunately breaking the cool acronym... Commented Mar 23, 2018 at 10:59
  • There is another cool acronym describing features of unit tests (sort of overlapping yours): Readable, Trustwothy, Fast and Maintainable. Commented Mar 23, 2018 at 11:02