Coaching Pro-Tip: When the developers act like testing the code is a time-wasting checkbox that costs a great deal and rewards very little, they are usually right, and one has to find out why, and tackle that, before pressing them to test more.
In test-after shops, it's quite common to set a test goal, usually but not always expressed in terms of coverage numbers. Once this is done, the org begins to press the developers to meet that goal.
My experience is that this kind of pressure backfires way more often than it succeeds.
When the boss tells someone to do something, they will usually do it. If they find the something beneficial, they will quickly learn to do it well. If they find the something markedly unpleasant, they will quickly learn to do it just enough to check it off the list.
If a developer hasn't learned how to write tests well, it's often because they haven't learned to write *any* code well. What they need isn't a checkbox, it's mentoring.
So when I see the signs in a test-after shop that writing tests is considered a chore, I go study some of those tests, up *close* I study them. And what I usually find is that the tests are either expensive, useless, or most commonly, both.
Primitive obsession in the data setup, lots of automocking that renders the test empty, bad names because scope is too large. These are the things I usually see.
Notice: every one of those things is not actually a test code problem, it's a shipping code problem. The test code is that way because the shipping code is that way.
So if the developers are signalling you that testing is an unpleasant chore, you know what? Believe them, find out why, and make fixing that your target, not a coverage number.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with GeePaw Hill

GeePaw Hill Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @GeePawHill

30 May
Two recurring phrases in my work are 1) It is like this because we built it to be like this. 2) The code works for you, you don't work for the code.

Two sides of one page, phrased on the front as negative critique, and on the verso as positive encouragement.
Before we dig in, I remind you of the relative unimportance of geekery to me just now. This is just respite. Please work for change and support the others who are doing so.

Stay safe, stay strong, stay angry, stay kind.

Black Lives Matter.
Humans make programs by manipulating code over time. The code's state, right now, is the direct result of the action of its humans. The code's state, tomorrow, will be the direct result of the action of its humans.

It's about agency, plasticity, & temporality.
Read 34 tweets
29 May
Michael Bolton, "What Are You Doing the Rest of Your Life".

It's a Michel Legrand song -- he the greatest dork of all musical history -- and I know I know you mad at Bolton for his stupid hair and his missteps.
But this is a take.

Yo.

This is a take.
Read 6 tweets
29 May
Stevie Wonder, "Ribbon in the Sky".

Yeah, that dint come up natural either. :)
Tryna re-center yo.
Read 5 tweets
29 May
Galt McDermott (et all), Hair OST, "The Flesh Failures".

Idunno. Do I have a one song fundament? No, no, no, prolly not. But if I did, it'd be this.
Tho Hair was a NY Shakespeare Festival entry, it only features a couple of moments from the Bard. This is one, but it's in the sub text.
Read 8 tweets
29 May
The Verve, "Bittersweet Symphony".

I don't think I ever played this for you before.
Damn.

It's a pretty important song to me.
Read 7 tweets
29 May
Patsy Cline, "Half as Much".

This a Curley Williams song, Hank WIlliams recorded it first, mebbe '52 or '53. But you Williams never invested his music with pathos. Patsy sang it, tho, and she never sang without sorrow.
My mom, of certain evenings, would drink two beers, put on _Sentimentally Yours_, and pace around the house.
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(