+ All Categories
Home > Software > Regression Testing: Down the Rabbit Hole (MEWT 2014)

Regression Testing: Down the Rabbit Hole (MEWT 2014)

Date post: 28-May-2015
Category:
Upload: neil-studd
View: 217 times
Download: 2 times
Share this document with a friend
Description:
There are many well-crafted definitions of what regression testing should be, but for some companies (that I've worked for), the reality is a long way from this paradise. In this talk, I'll share a few of the horrors I've seen, the techniques I've used to remedy them, and how I see things improving in the future.
Popular Tags:
16
Regression Testing: Down the Rabbit Hole Neil Studd, Towers Watson
Transcript
Page 1: Regression Testing: Down the Rabbit Hole (MEWT 2014)

Regression Testing: Down the Rabbit HoleNeil Studd, Towers Watson

Page 2: Regression Testing: Down the Rabbit Hole (MEWT 2014)

About Me

• 10 years of testing• Cambridge-based• Work for companies

with red logos

Page 3: Regression Testing: Down the Rabbit Hole (MEWT 2014)

Only the names have changed…

Page 4: Regression Testing: Down the Rabbit Hole (MEWT 2014)

Chasing the Holy Grail

• We’ll hear lots today about how regression testing should be done– …in an ideal world– …easiest for new projects– …or when starting afresh– …when there’s wider

business buy-in, e.g. continuous delivery

• The “holy grail” of regression testing…

Page 5: Regression Testing: Down the Rabbit Hole (MEWT 2014)

I took the red pill

• Desktop software• Infrequent releases• Client-driven features• Client-driven deadlines• (Time v features v quality:

Quality often loses)• Manual regression cycle• At the end of the release

Page 6: Regression Testing: Down the Rabbit Hole (MEWT 2014)

Our sacred texts

• Tests are treated as a product bible

• Handed down through generations

• Revered and followed without question

• Very much “of their time”; not modified to reflect new evidence

Page 7: Regression Testing: Down the Rabbit Hole (MEWT 2014)

Oh, the things I’ve seen…

• Tests not testing what they claimed to test

• Expected result = “a sensible error”

• …but that was actually a bug!

• Not enough detail• Too much detail

Page 8: Regression Testing: Down the Rabbit Hole (MEWT 2014)

All the information, all at once

Page 9: Regression Testing: Down the Rabbit Hole (MEWT 2014)

Why was it done this way?

Page 10: Regression Testing: Down the Rabbit Hole (MEWT 2014)

We need to go deeper

• Five whys:– Not peer-reviewing– Short of time/resources– Fixed project deadline– Unrealistic promise to

customer– Salespeople too far

removed

• Dev/test separation, driven by disrespect (dev) and fear (test)

• “Testing is a tester’s problem”

Page 11: Regression Testing: Down the Rabbit Hole (MEWT 2014)

We fell for the dark side

• Don’t allow your tools to start working against you!

• TFS: Supports multiple references to one test

• TFS: Supports “shared steps” in tests = quickly multiplies setup/teardown

• Just because you can easily record a regression test, doesn’t mean you should

Page 12: Regression Testing: Down the Rabbit Hole (MEWT 2014)

What I didn’t do

• Not burning books…• …written in good faith• …useful metadata• …cross-referencing• …gives information

about previous perceived severities

Page 13: Regression Testing: Down the Rabbit Hole (MEWT 2014)

How I’m surviving

• Rewriting/reducing• Piecemeal• Session-based• To answer “Is there a

problem here?”• …Which involves

looking at the product

Page 14: Regression Testing: Down the Rabbit Hole (MEWT 2014)

How I’m trying to change things

• Training devs to test• Pairing/reviewing

developer unit testing• Automating black &

white checks• (…but not to replace

human interaction)• More code reviews• …which feed testing

Page 15: Regression Testing: Down the Rabbit Hole (MEWT 2014)

There’s still room to improve

• More automation• Run more easily/often• Increased testability• Address the causes

of regressions, rather than fixing the fallout

• Focus on providing value and information

Page 16: Regression Testing: Down the Rabbit Hole (MEWT 2014)

Any questions?

• More thought to come (yes Simon I’ll write that article for The Testing Planet)

• Blog: neilstudd.com• Twitter: @neilstudd


Recommended