SlideShare uma empresa Scribd logo
1 de 17
Easier Unit Testing in
with Typemock Isolator++
royo@typemock.com
Docs.typemock.com/isolatorppCTO
Typemock
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
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
DEMO
Setting up
DEMO
Recursive Fakes
DEMO
Static Methods
DEMO
Sequencing Behavior
DEMO
Checking Interactions
DEMO
Custom Assertions
API design guidelines
 AAA
 Short and sweet
 Recursive fakes
 No ‘mock’ or ‘stub’
 Non strict behavior
 Sticky Behavior
 No harm-No Foul
LIVE video feed at justin.tv/Typemock
30 days trial version
http://tinyurl.com/isolatorPP
LIVE video feed at justin.tv/Typemock
Short Song
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
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
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
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"
LIVE video feed at justin.tv/Typemock
I hope my friend of shore won’t stress

Mais conteúdo relacionado

Destaque (11)

Gost r certificate 1588 (catalog)
Gost r certificate 1588 (catalog)Gost r certificate 1588 (catalog)
Gost r certificate 1588 (catalog)
 
Mini Society
Mini SocietyMini Society
Mini Society
 
Tecnología
TecnologíaTecnología
Tecnología
 
Morfologia del plano dentro de la ciudad
Morfologia del plano dentro de la ciudadMorfologia del plano dentro de la ciudad
Morfologia del plano dentro de la ciudad
 
Reggaeton
ReggaetonReggaeton
Reggaeton
 
Conocimiento de palabras
Conocimiento de palabrasConocimiento de palabras
Conocimiento de palabras
 
Examen tercer grado primer bimestre WORD
Examen tercer grado primer bimestre WORDExamen tercer grado primer bimestre WORD
Examen tercer grado primer bimestre WORD
 
Justwines com-au
Justwines com-auJustwines com-au
Justwines com-au
 
Las meninas (1)
Las meninas (1)Las meninas (1)
Las meninas (1)
 
Understanding the medical record PPT
Understanding the medical record PPTUnderstanding the medical record PPT
Understanding the medical record PPT
 
Task 7_ Mono Print
Task 7_ Mono PrintTask 7_ Mono Print
Task 7_ Mono Print
 

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

Clean Unit Test Patterns
Clean Unit Test PatternsClean Unit Test Patterns
Clean Unit Test PatternsFrank Appel
 
YouTube API: Dive In
YouTube API: Dive InYouTube API: Dive In
YouTube API: Dive Innotronwest
 
Continuous Testing in Vegas
Continuous Testing in VegasContinuous Testing in Vegas
Continuous Testing in Vegasjaredrrichardson
 
Code Smells Part 1: Basic Smells
Code Smells Part 1:  Basic SmellsCode Smells Part 1:  Basic Smells
Code Smells Part 1: Basic SmellsNancy Henson
 
QA Fest 2018. Ярослав Пернеровский. Test Automation Pyramid, how it ruins you...
QA Fest 2018. Ярослав Пернеровский. Test Automation Pyramid, how it ruins you...QA Fest 2018. Ярослав Пернеровский. Test Automation Pyramid, how it ruins you...
QA Fest 2018. Ярослав Пернеровский. Test Automation Pyramid, how it ruins you...QAFest
 

Semelhante a Typemock Isolator++ - Easier unit testing in c++ (13)

XP Injection
XP InjectionXP Injection
XP Injection
 
XP Injection
XP InjectionXP Injection
XP Injection
 
Track code quality with SonarQube
Track code quality with SonarQubeTrack code quality with SonarQube
Track code quality with SonarQube
 
Clean Unit Test Patterns
Clean Unit Test PatternsClean Unit Test Patterns
Clean Unit Test Patterns
 
Tech comm video
Tech comm videoTech comm video
Tech comm video
 
YouTube API: Dive In
YouTube API: Dive InYouTube API: Dive In
YouTube API: Dive In
 
Continuous Testing in Vegas
Continuous Testing in VegasContinuous Testing in Vegas
Continuous Testing in Vegas
 
Code Smells Part 1: Basic Smells
Code Smells Part 1:  Basic SmellsCode Smells Part 1:  Basic Smells
Code Smells Part 1: Basic Smells
 
Mocking 101
Mocking 101Mocking 101
Mocking 101
 
Intro to Silex
Intro to SilexIntro to Silex
Intro to Silex
 
Remedie OSDC.TW
Remedie OSDC.TWRemedie OSDC.TW
Remedie OSDC.TW
 
QA Fest 2018. Ярослав Пернеровский. Test Automation Pyramid, how it ruins you...
QA Fest 2018. Ярослав Пернеровский. Test Automation Pyramid, how it ruins you...QA Fest 2018. Ярослав Пернеровский. Test Automation Pyramid, how it ruins you...
QA Fest 2018. Ярослав Пернеровский. Test Automation Pyramid, how it ruins you...
 
Video Editing and Encoding
Video Editing and EncodingVideo Editing and Encoding
Video Editing and Encoding
 

Último

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Último (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

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

  • 1. Easier Unit Testing in with Typemock Isolator++ royo@typemock.com Docs.typemock.com/isolatorppCTO Typemock
  • 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. 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
  • 10. API design guidelines  AAA  Short and sweet  Recursive fakes  No ‘mock’ or ‘stub’  Non strict behavior  Sticky Behavior  No harm-No Foul
  • 11. LIVE video feed at justin.tv/Typemock 30 days trial version http://tinyurl.com/isolatorPP
  • 12. LIVE video feed at justin.tv/Typemock Short Song
  • 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. 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. 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. 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. LIVE video feed at justin.tv/Typemock I hope my friend of shore won’t stress