(no title)
gedrap | 8 years ago
Also, having a file on a container (which is probably the easiest test to perform) often is _the desired behavior_ of a command or something else.
gedrap | 8 years ago
Also, having a file on a container (which is probably the easiest test to perform) often is _the desired behavior_ of a command or something else.
crdoconnor|8 years ago
No. Not that.
>Also, having a file on a container (which is probably the easiest test to perform) often is _the desired behavior_
No it isn't. The end user doesn't give a damn whether a particular file is on the container. That's an implementation detail. The end user wants:
* Pages to load quickly
* To not have to face data inconsistency bugs
* Pages to operate while the site is under high load
* For various services your system connects to to work properly (e.g. clicking 'get two factor code' actually sends an SMS).
Checking to see if a certain file is present is pointless if that doesn't lead to the desired system behavior.
Moreover, if you have the means to verify the desired system behavior:
* The presence of the file, if it was required, can be assumed.
* If you swap out a component and stop needing that file to be present to achieve the same behavior your test will still fail even if your system works perfectly. That's an extremely undesirable property to have in a test.
Checking for the presence of a file and failing hard if it is not there as part of a build is a sometimes a good way sanity checking a component, but as an outside 'test' of that component it's a bad idea.
yorwba|8 years ago