i dream of ispweb

Post on 11-May-2015

1.186 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Gil Zilberfeld's presentation from ADC2011 on unit testing SharePoint application.

TRANSCRIPT

Veranstalter:

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

I Dream of ISPWeb:Unit Testing SharePoint Apps

Gil Zilberfeld

Who am I?

– Software developer for 15 years

– Product Manager at Typemock

– @gil_zilberfeld

– www.gilzilberfeld.com

What’s the plan?

– Unit Testing 101

– Tools

– Examples

– Start now

o It's not that hard

What is unit testing?

Why unit testing?

– Reduce pain

– Improve productivity

Automated unit testing shorten the feedback cycle

Where do I start?

SharePoint Development

So is SharePoint Untestable?

Dependencies

Why do we need isolation?

Applications are complex

We can’t touch a live system

When we call SharePoint

– Setup

– Teardown

– Repeat

Isolation Frameworks to the Rescue

Fakes help change behavior without changing the code

 

Fakes help verify calls

 

Isolation Frameworks Demo

What are the differences?

Unit tests are the antidote to stupid bugs

Start now!

Questions?

Twitter: @gil_zilberfeldhttp://www.gilzilberfeld.comgilz@typemock.com

top related