this post was submitted on 10 Sep 2023
121 points (98.4% liked)

Out of the loop

10820 readers
1 users here now

A community that helps people stay up to date with things going on.

founded 1 year ago
MODERATORS
 

I keep seeing posts of some drama with typescript. What happened?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago

I love unit tests but I hate the eternal struggle behind them.

We should make unit tests so we can tell when the build runs that the app is going to be consistent

Everyone cheers

We lose a sprint setting up unit tests

Oh this one test just went yellow, somebody spends a few hours figuring it out and finds that it's a bug in the unit test. No no we're good That's just a bug in the unit test we'll plan to fix that in the next Sprint.

Oh look now this unit test is going red we're blocked. 2 hours later they find out that it's a real problem but it's not so bad that it overrides current feature work. Well we're going to need to override that and we'll have to fix it in the next sprint.

Unit test failures slowly degrade in priority to try to get feature work done. You end up with a backlog full of yellow and red known problems and no one pays any attention to you that tests anymore.