Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

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

1,535 views

Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

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

×