In this chapter you’ll learn to test your code using tools in Python’s
unittest module. You’ll learn to build a test case and check that a set of
inputs results in the output you want.
You’ll see what a passing test looks
like and what a failing test looks like, and you’ll learn how a failing test can
help you improve your code. You’ll learn to test functions and classes, and
you’ll start to understand how many tests to write for a project.
When you write a function or a class, you
can also write tests for that code. Testing
proves that your code works as it’s supposed
to in response to all the input types it’s designed
to receive. When you write tests, you can be confident
that your code will work correctly as more people
begin to use your programs.
▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:13 - Introduction
00:52 - What you will learn.
01:30 - Testing a Function
05:34 - Unit Tests and Test Cases
06:40 - A Passing Test
12:47 - A Failing Test
15:14 - Responding to a Failed Test
18:14 - Adding New Tests
22:27 - 1st Set of Challenges
23:16 - Answers of the 1st Set of Challenges
31:14 - Testing a Class
31:45 - A Variety of Assert Methods
32:52 - A Class to Test
36:03 - Testing the AnonymousSurvey Class
41:23 - The setUp() Method
46:45 - 2nd Set of Challenges
47:10 - Answers of the 2nd Set of Challenges
51:38 - Summary
53:05 - Wrap up - Congratulations!!!
53:42 - Next Steps - Part II Projects
Key main topics covered:
1) Testing a Function
2) Unit Tests and Test Cases
3) Testing a Class
4) The setUp() Method
Click the PayPal Donate Link below to support my YouTube channel, if you have found these videos helpful with your studies:
https://www.paypal.com/donate/?hosted...
Don't forget to subscribe for more!
Instagram:https://www.instagram.com/tutoringaib...
Facebook: / tutoringaibest
#program #programmers #programming #programmer #codeuniverse #peoplewhocode #technology #beautyoftechnology #minimalism #javascript #softwareengineer #pythonlearning #computerscience #coder #python3 #pythoncode #pythonprogramming #GCSE #Coding #Alevels #binary #networks #lists