Does DRY Apply to Tests?

I don't know if this is a good thing: I can copy & paste my tests for another endpoint in this app and globally replace a few variable names and class names. Then I run the tests, they all just pass, and I can move on with life.

I’ll leave DRY for now. I don’t know if it applies to tests anyway. I just finished this app— it’s been a slog— and I can do something else with the remainder of my day.

12 January 2023

Previous
Previous

Closures and Higher-Order Functions to Reduce Code Reuse

Next
Next

ChatGPT: of Questionable Utility