Peering Into the White Box: A testers approach to code reviews Alan - - PowerPoint PPT Presentation

peering into the white box a testers approach to code
SMART_READER_LITE
LIVE PREVIEW

Peering Into the White Box: A testers approach to code reviews Alan - - PowerPoint PPT Presentation

Peering Into the White Box: A testers approach to code reviews Alan Page M icrosoft self-promotion slide http:/ / angryweasel.com/ blog http:/ / www.hwtsam.com http:/ / twitter.com/ alanpage Code Reviews really? The Testers Point of


slide-1
SLIDE 1

Peering Into the White Box: A testers approach to code reviews

Alan Page M icrosoft

slide-2
SLIDE 2

self-promotion slide

http:/ / angryweasel.com/ blog http:/ / www.hwtsam.com http:/ / twitter.com/ alanpage

slide-3
SLIDE 3

Code Reviews… really?

slide-4
SLIDE 4

The Tester’s Point of View

Code reviews traditionally a developer activity

  • Developers write unit

tests

  • Developers ask “ does

this work?”

  • Developers look at code
  • ne way, but…
  • But testers still find

functional bugs

  • Testers ask “ how can

this fail?”

  • Testers have a different

perspective

Experiment: Have testers perform code reviews

slide-5
SLIDE 5

Types of Reviews

Formal Inspection Ad hoc review

More formal More effective Greater cost Less formal Less effective Less cost

Based on Peer Reviews in Software by Wiegers, 2002

slide-6
SLIDE 6

Approach

  • 1. Kickoff meeting
  • 2. Collect volunteers
  • 3. Set expectations
  • 4. Schedule meetings
  • 5. Share checklist
slide-7
SLIDE 7

Using a Checklist

The illusion of attention

If you look for everything, you’ll miss something If you look for one thing, you’ll miss other things

M itigation

Loop one at a time through a list

  • f common errors
slide-8
SLIDE 8

Selecting Code for Review

Churn Complexity Intuition Convenience

slide-9
SLIDE 9

Results

Four teams M oderate engagement Skill increase Successful “ Bug Hunting”

slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12
slide-13
SLIDE 13

Lessons Learned

Not like other testing Balance w/ other activities The Checklist Develop “ Experts” Development team involvement Bug Tracking

slide-14
SLIDE 14

Future Plans

Continue with select team members Inspection “ SWAT” Track comments and discussion

slide-15
SLIDE 15

Are code reviews for you?

slide-16
SLIDE 16

Resources

  • Software Inspection – Tom Gilb & Dorothy Graham.

Addison-Wesley Professional (January 10, 1994)

  • The Best Kept Secrets of Peer Code Review -

http:/ / smartbear.com/ codecollab-code-review- book.php

  • Software Inspection (web article) - http:/ / www.the-

software-experts.de/ e_dta-sw-test-inspection.htm

  • Fagan Inspections (Wikipedia entry) -

http:/ / en.wikipedia.org/ wiki/ Fagan_inspection

slide-17
SLIDE 17