Programming and Algorithms: Week 34

Banner

object oriented testing 1

What are we doing this week?


This week we are going to look at the OBJECT-ORIENTED TESTING and UNIT TESTING in PYTHON.

Python Python Logo

Powerpoint: Object-Oriented Testing


Powerpoint: Unit Testing


Total running time of videos is 20 minutes.

Sample Code:
CheckNumbers-int-float * CheckNumbers-String-float * CheckNumbers-both * TestAverage * stats * test-stats


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 #34
Lab #34 is all about checking if what you have learned in the episodes above all makes sense, and if you can use unit test library.




Back

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