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

  • 524 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
524
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 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
  • 2. 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
  • 3. 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
  • 4. Pex The result is a minimal test suite with maximum code coverage 4lunes 21 de junio de 2010
  • 5. ¿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
  • 6. 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
  • 7. 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
  • 8. 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