Typemock Isolator++ - Easier unit testing in c++

1,373 views
1,313 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,373
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Typemock Isolator++ - Easier unit testing in c++

  1. 1. Easier Unit Testing in with Typemock Isolator++ royo@typemock.com Docs.typemock.com/isolatorppCTO Typemock
  2. 2. LIVE video feed at justin.tv/Typemock Agenda  Introducing Isolator++  Some code demos  I++ API Design principles  Some more code demos  Live Q&A  Possibly a song
  3. 3. What can you do?  Global Methods  Static Methods  Interfaces  Live Instances  Non publics  Futures  Return Value or PTR  Throw Exception  Execute Custom Code  Call the original Behavior  Called or not called  Count calls  Assert on call parameters
  4. 4. DEMO Setting up
  5. 5. DEMO Recursive Fakes
  6. 6. DEMO Static Methods
  7. 7. DEMO Sequencing Behavior
  8. 8. DEMO Checking Interactions
  9. 9. DEMO Custom Assertions
  10. 10. API design guidelines  AAA  Short and sweet  Recursive fakes  No ‘mock’ or ‘stub’  Non strict behavior  Sticky Behavior  No harm-No Foul
  11. 11. LIVE video feed at justin.tv/Typemock 30 days trial version http://tinyurl.com/isolatorPP
  12. 12. LIVE video feed at justin.tv/Typemock Short Song
  13. 13. LIVE video feed at justin.tv/Typemock There are classes I'll remember All my life - I can't disclose  Some a thousand lines or longer Some ate dead, and some are worse
  14. 14. LIVE video feed at justin.tv/Typemock But at night I have a mission I Write some tests - Delete some code  It could cost me my position I'd my boss finds out he will explode
  15. 15. LIVE video feed at justin.tv/Typemock But of all these files and functions There is one – that scares me more God I really hope that someone's Gonna deal with it, hopefully offshore
  16. 16. LIVE video feed at justin.tv/Typemock Long ago this function name meant something But now it's just a pile of mess Oh dear god what am I doing? "delete from source control?" "yes"
  17. 17. LIVE video feed at justin.tv/Typemock I hope my friend of shore won’t stress

×