visit
First part is How do I Encourage my Manager to Support Automated Tests?
Once you've persuaded to support automated testing, you need to plan it right — the acceptance of the initiative doesn’t guarantee unlimited probation time.
It's a widely accepted consensus that automatic tests (and TDD) benefit the software development process in the following ways:
- saves time (reduces time to market) []
- improves quality and lowers total cost of ownership []
- improves team morale (mundane, repetitive tasks are among the sources of developers’ unhappiness) []
- reduces onboarding costs (developers have less fear of changing and breaking things)
There’s a consensus in the software development area that, so I wouldn’t recommend going that route.
It’s also impossible to measure team morale with numbers, so this route is useless too.
We can show only two measurable things: onboarding cost (time) and time to market.
However, onboarding costs will reduce noticeably only after some time while we want to show immediate results.
So we are left with showing how time to market is reduced.
I’ve mentioned studies on context switching costs in my code review limits to applicability article:
There are multiple publications on how multitasking and switching contexts are ineffective:There’s good scientific evidence that it’s more effective to work on one single task at a time with as few context switches as possible.
This proves that to reduce time to market (and show immediate results in this initiative), manual QA phase should be reduced as:
As you can see, the obvious choice here would be to start automating ‘authorisation’ first as it takes 9 minutes to be tested manually every release.
These 9 minutes yield 8 hours a year spent directly on manual testing of this particular feature if we have one release per week.
The more trust you have, the more you can do what you know is right, potentially something which cannot be ‘measured’ or is not quantifiable.
But I’ve rarely seen managers knowing of this, hence this whole approach of showing results and gaining trust to do something that’s truly right.
- Management by use only of visible figures, with little or no consideration of figures that are unknown or unknowable.
So, to summarise: