10 Secret Unit Testing Tips
-
Upload
gil-zilberfeld -
Category
Technology
-
view
872 -
download
0
description
Transcript of 10 Secret Unit Testing Tips
![Page 1: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/1.jpg)
Gil Zilberfeld,Product Manager
7-Nov-2011
10 Secret Unit Testing Tips
![Page 2: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/2.jpg)
Tip #1
Automate, automate, and automate some
more!
![Page 3: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/3.jpg)
Tip #2
Test what you’re working on
![Page 4: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/4.jpg)
Tip #3
Unit testing is a team sport
![Page 5: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/5.jpg)
Tip #4
Coverage can be deceiving
![Page 6: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/6.jpg)
Demo
The 100% CoverageMagic Trick
![Page 7: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/7.jpg)
Tip #5
Unit testing is all about quick
feedback
![Page 8: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/8.jpg)
Tip #6
Organize your tests
![Page 9: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/9.jpg)
Tip #7
The 3 Rules of Isolation•Make it quick•Make it real•And…
![Page 10: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/10.jpg)
Cone of Dependency
GUI BLL DAL ORM DB
![Page 11: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/11.jpg)
Tip #7
The 3 Rules of Isolation•Make it quick•Make it real•Make it last
![Page 12: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/12.jpg)
Tip #8
Try Test Driven Development
![Page 13: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/13.jpg)
Tip #9
Give Names Like a Detective
![Page 14: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/14.jpg)
Tip #10
Readability first!
![Page 15: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/15.jpg)
Win a Typemock Isolator license!
http://www.typemock.com/win
![Page 16: 10 Secret Unit Testing Tips](https://reader036.fdocuments.us/reader036/viewer/2022062513/554fb758b4c9050e7d8b4644/html5/thumbnails/16.jpg)
Questions?
www.typemock.com
blog.typemock.com
@typemock
www.gilzilberfeld.com
@gil_zilberfeld