Cas2010 herramientas-de-pruebas-unitarias-pex-y-moles
Upcoming SlideShare
Loading in...5
×
 

Cas2010 herramientas-de-pruebas-unitarias-pex-y-moles

on

  • 807 views

 

Statistics

Views

Total Views
807
Slideshare-icon Views on SlideShare
807
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Cas2010 herramientas-de-pruebas-unitarias-pex-y-moles Cas2010 herramientas-de-pruebas-unitarias-pex-y-moles Presentation Transcript

    • Haciendo realidad la agilidad Herramientas de pruebas unitarias Pex y Moles Ibon Landa © flioukas Plain Concepts http://www.plainconcepts.com http://geeks.ms/blogs/ilanda 1lunes 21 de junio de 2010
    • Pex & Moles White box unit testing tool for .Net Microsoft Research Visual Studio 2008/2010 add-in Free for personal use or with MSDN license Support multiple testing frameworks 2lunes 21 de junio de 2010
    • Pex = Project Exploration Helps with writing unit tests Analyze the branch conditions Create simple parameterized unit tests automatically Uses a constraint solver to systematically generate relevant inputs 3lunes 21 de junio de 2010
    • Pex The result is a minimal test suite with maximum code coverage 4lunes 21 de junio de 2010
    • ¿What is Moles? Lightweight mocking Allows replacing any .NET method with a delegate Isolate from environment dependencies such as time, file system, database… Two Types: Stub & Moles Type 5lunes 21 de junio de 2010
    • Stub Type Rely on virtual method dispatch Cannot be used for static methods, non-virtual methods, sealed virtual methods, methods in sealed types.. Self-contained Provide implementations of interfaces and abstract methods 6lunes 21 de junio de 2010
    • Moles Type Rely on runtime code rewriting Significant performance degradation in execution time CLR profiler Cannot instrument interfaces and abstract methods 7lunes 21 de junio de 2010
    • Haciendo realidad la agilidad Herramientas de pruebas unitarias Pex y Moles Ibon Landa © flioukas Plain Concepts http://www.plainconcepts.com http://geeks.ms/blogs/ilanda 8lunes 21 de junio de 2010