DEV Community

loading...

Discussion on: We Should All Be Writing WET Code

Collapse
7tonshark profile image
Elliot Nelson

Great article!

I especially prefer "WET" code in unit tests, where constantly trying to cut lines by consolidating similar tests using "helpers" can result in giant methods with many flags.

The original goal was to make maintaining the unit tests easy, but now the helpers are so complex so that adding new test paths takes hours.

Forem Open with the Forem app