DEV Community

Discussion on: What are your biggest problems with unit testing?

 
bengreenberg profile image
Ben Greenberg

If a test's expectation is linked to the exact desired output, then changing the input, for example, the wording in the hypothetical markdown file, will break the test. In my experience, this is something not to do, because it adds unnecessary fragility to the unit test. That's what I was saying.

Have a great weekend!

Thread Thread
 
rossdrew profile image
Ross • Edited

Agree. That's a problem in general with unit testing infinitely variable textual values. It's almost never a case for unit testing if you end up trying.