by codetrotter · 3y ago · 0 comments
“Should” to me is too weak.
No, it’s not just “should”. It does. And if it doesn’t then either the implementation is broken, or the test is bad.
“Should” has connotations for me of something that we want but which we don’t require.
Therefore, I don’t use the word “should” in my test names.
Instead of “should have length 256”, I say “has length 256”.
> MUST This word, or the terms "REQUIRED" or "SHALL", mean that the definition is an absolute requirement of the specification.
>SHOULD This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course.
Join the world of needing to make the FAA happy and your vocabulary will change to incorporate shall, will, must, and others in a more discerning manner.
"this test tests that" input has length 256
Since the prefix would be equal for all the tests only the last part becomes the name.
Now I consider that style boilerplate, and just write “X shall hold.”