Top Banner
Veranstal ter: Speziell zu Software- Testing 14.-15. Februar 2011, München I Dream of ISPWeb: Unit Testing SharePoint Apps Gil Zilberfeld
20

I dream of ISPWeb

May 11, 2015

Download

Documents

Gil Zilberfeld

Gil Zilberfeld's presentation from ADC2011 on unit testing SharePoint application.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: I dream of ISPWeb

Veranstalter:

Speziell zu Software-Testing14.-15. Februar 2011, München

I Dream of ISPWeb:Unit Testing SharePoint Apps

Gil Zilberfeld

Page 2: I dream of ISPWeb

Who am I?

– Software developer for 15 years

– Product Manager at Typemock

– @gil_zilberfeld

– www.gilzilberfeld.com

Page 3: I dream of ISPWeb

What’s the plan?

– Unit Testing 101

– Tools

– Examples

– Start now

o It's not that hard

Page 4: I dream of ISPWeb

What is unit testing?

Page 5: I dream of ISPWeb

Why unit testing?

– Reduce pain

– Improve productivity

Page 6: I dream of ISPWeb

Automated unit testing shorten the feedback cycle

Page 7: I dream of ISPWeb

Where do I start?

Page 8: I dream of ISPWeb

SharePoint Development

Page 9: I dream of ISPWeb

So is SharePoint Untestable?

Page 10: I dream of ISPWeb

Dependencies

Page 11: I dream of ISPWeb

Why do we need isolation?

Applications are complex

We can’t touch a live system

When we call SharePoint

– Setup

– Teardown

– Repeat

Page 12: I dream of ISPWeb

Isolation Frameworks to the Rescue

Page 13: I dream of ISPWeb

Fakes help change behavior without changing the code

 

Page 14: I dream of ISPWeb

Fakes help verify calls

 

Page 15: I dream of ISPWeb

Isolation Frameworks Demo

Page 16: I dream of ISPWeb

What are the differences?

Page 17: I dream of ISPWeb

Unit tests are the antidote to stupid bugs

Page 18: I dream of ISPWeb

Start now!

Page 20: I dream of ISPWeb

Questions?

Twitter: @gil_zilberfeldhttp://[email protected]