Download pdf - Server Side Testing

Transcript
Page 1: Server Side Testing

Server Side Unit TestingPRESENTED BY: THE PANTHERS

Page 2: Server Side Testing

Why do we unit test?

Page 3: Server Side Testing

Is that not QA’s job?

Page 4: Server Side Testing

Pros:• Design Methods in a more modular fashion

• Provides Documentation of code

• Helps reduce manual testing

• Allows regression of code

• Catches bugs early

Page 5: Server Side Testing

Previous Technology Used:• Nunit

• Inline DataBuilders

• Asserts and Nunit Asserts

• RhinoMoqs

Page 6: Server Side Testing

Current Technology

Page 7: Server Side Testing

Shouldly:• Tons of great documentation - http://docs.shouldly-

lib.net/v2.4.0/docs/overview

• Fluent and human readable

• Failure messages point to the where it failed

• Has a funny failure message – Chucked a Wobbly

Page 8: Server Side Testing

AutoFixture:• Tons of great documentation -

https://github.com/AutoFixture/AutoFixture/wiki/Cheat-Sheet

• Automatic creation of simple and complex types

• Inline

• Constructors

• Custom

• Easily extensible to help build types

Page 9: Server Side Testing

Moq:• Tons of great documentation -

https://github.com/Moq/moq4/wiki/Quickstart

• Made for .Net in mind

• Linq to Mocks

• Able to Mock Events, Callbacks, Properties, Arguments and Asynchronous

Calls

• Can Mock Protected Members

• Can Mock Interfaces and Classes

• Can intercept and raise events on mocks

Page 10: Server Side Testing

Xunit:• Tons of great documentation - http://xunit.github.io/docs/getting-

started.html

• Made for .Net in mind

• Uses the C# framework of instead of custom attributes

• Is extensible to use Theories, Autodata, AutoRollback, InlineData

• Works great with other frameworks such as Moq and AutoFixture

Page 11: Server Side Testing

Future Technololgy

Page 12: Server Side Testing

Questions?

We have answers!!!

Page 13: Server Side Testing

Image References:• Paul McRae (Delta Diner) Flickr

• Andy Armstrong (Perl QA Hackathon) Flickr

• CltreonAZU (Bug Line-up) Flickr

• Paul (Panasonic Lumix GM1) Flickr

• Stilgherrian (Nokia Lumia 925) Flickr

• Kyle Miron (Hey WoodChuck!) Flickr

• Joe Penniston (Disney - Magic Music Mayhem 2) Flickr

• GfPeck (Blue on Black) Flickr

• XgamesBarcelona www.barcelonablog.net

• Microsoft Sweden (win10_HoloLens_livingRoom) Flickr

• Derek Bridges (Questions) Flickr

• Robert Claypool (Nashville Public Library, Grand Reading Room)


Recommended