2 ms·
>Getting all your teammates to quit giving all their tests names like "testTheThing" is darn near impossible. You can do better than "testTheThing". Have your
by macspoofing 2y ago
>Getting all your teammates to quit giving all their tests names like "testTheThing" is darn near impossible.
You can do better than "testTheThing".
Have your team (or a working group composed of your team, if your team is too big) put together a set of guidelines on naming conventions for unit test methods. Have your team agree to these conventions (assumption is that the working group would have consulted with rest of team and incorporated their feedback).
Then make that part of the code review checklist (so you aren't the one that is actually enforcing the policy). Do spot checks for the first little while, or empower some individuals to be responsible for that - if you really want to. Do a retrospective after a month or 2 months to see how everyone is doing and see how successful this initiative was.