Unit Testing

321 views

Published on

Somthing visual to go along with my talk for college students on unit testing at TDD.

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

  • Be the first to like this

No Downloads
Views
Total views
321
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Unit Testing

  1. 1. HOW TO TEST YER SOFTWARE DYLAN SWARTZFriday, April 19, 13
  2. 2. HI. I’M DYLAN! I MAKE JAVA CODE AT SVSU.Friday, April 19, 13
  3. 3. THIS IS MY FRIEND, IGGY. http://ivpg.in/Friday, April 19, 13
  4. 4. ACCEPTANCE TESTS UNIT TESTINGTEST DRIVEN DEVINTEGRATION TESTINGBEHAVIOR DRIVEN DEVFriday, April 19, 13
  5. 5. WE ALL TEST OUR CODE CODE. COMPILE. RUN. TEST.Friday, April 19, 13
  6. 6. WE ALL TEST OUR CODE CODE. CODE. COMPILE. COMPILE. RUN. RUN. TEST. TEST.Friday, April 19, 13
  7. 7. WE ALL TEST OUR CODE CODE. CODE. CODE. COMPILE. COMPILE. COMPILE. RUN. RUN. RUN. TEST. TEST. TEST.Friday, April 19, 13
  8. 8. WE ALL TEST OUR CODE CODE. CODE. CODE. CODE. CODE. COMPILE. COMPILE. COMPILE. COMPILE. COMPILE. RUN. RUN. RUN. RUN. RUN. TEST. TEST. TEST. TEST. TEST. CODE. CODE. CODE. CODE. CODE. COMPILE. COMPILE. COMPILE. COMPILE. COMPILE. RUN. RUN. RUN. RUN. RUN. TEST. TEST. TEST. TEST. TEST.Friday, April 19, 13
  9. 9. THERE’S GOTTO BE ABETTERWAY?!!??Friday, April 19, 13
  10. 10. THE UNIT TESTFriday, April 19, 13
  11. 11. the smallest testable part of an application is called a unit.Friday, April 19, 13
  12. 12. Unit testing can be defined as taking units, isolating ‘em from the rest of the code, and determining if it behaves exactly as you’d expect.Friday, April 19, 13
  13. 13. MAKE INTO C++Friday, April 19, 13
  14. 14. MAKE INTO C++Friday, April 19, 13
  15. 15. MAKE INTO C++Friday, April 19, 13
  16. 16. TESTING FRAMEWORKSFriday, April 19, 13
  17. 17. Frameworks: are semi-complete applications. provide a reusable, common structure to share among applications. allow developers to extend them to meet their needs.Friday, April 19, 13
  18. 18. CppUTest JUnit is a popular testing framework that will help us write our tests.Friday, April 19, 13
  19. 19. MAKE INTO C++Friday, April 19, 13
  20. 20. WOO!Friday, April 19, 13
  21. 21. TEST DRIVEN DEVELOPMENTFriday, April 19, 13
  22. 22. When doing TDD, you write a failing test first.Friday, April 19, 13
  23. 23. After writing your test. Write the SMALLEST amount of code possible to make the test pass.Friday, April 19, 13
  24. 24. REFACTOR!Friday, April 19, 13
  25. 25. CODING TIMEFriday, April 19, 13
  26. 26. CONTACT INFOS: dylan@svsu.edu github.com/dylanswartz @dylan_swartzFriday, April 19, 13

×