Object Orientated Programming: Week 9

Banner

Object Oriented testing

LEARNING OBJECTIVES


This week we are going to look at:

1. Introducing OBJECT ORIENTED TESTING.
2. Introducing
TEST-DRIVEN DEVELOPMENT.
3. Introducing
UNIT TESTING.

Python 

Powerpoint: Object-Oriented Testing

Powerpoint: Feature-Driven Development

Two page summary

Powerpoint: Unit Testing

Two page summary




Videos:
Object-Oriented Testing


Unit Testing





Sample Code:
CheckNumbers-int-float * CheckNumbers-String-float * CheckNumbers-both * TestAverage * Stats * Test-Stats

Python IntrepreterCode in Action




Unit Testing Makes Your Code Better #MP44


Fake It Til You Make It:
Unit Testing Patterns With Mocks and Fakes (Brian K. Jones)






Links

Wikipedia: Unit Testing
https://en.wikipedia.org/wiki/Unit_testing

Testing Your Code — The Hitchhiker's Guide to Python
http://docs.python-guide.org/en/latest/writing/tests/

Python Docs: UnitTest
https://docs.python.org/2/library/unittest.html



Lab #9
Lab #9 is all about checking if what you have learned in the episodes above all makes sense.



Back

If you have any suggestions, corrections, or comments, please feel free to e-mail me at:
Damian.X.Gordon(a)tudublin.ie