Python TDD Workflow - Unit Testing Code Example for Beginners

Описание к видео Python TDD Workflow - Unit Testing Code Example for Beginners

In this tutorial we will play the game of unit testing! 🎮🎮🎮
To do so - we will learn a brand new coding workflow, implementing a set of programming principles known as Test Driven Development.
I will introduce you to the Three Laws of TDD (also known as the Three Laws of Uncle Bob) and show how to write a piece of software unit by unit, test by test, 2 minutes at a time! ⏱️
The end result is not only a cool encryption algorithm known as Caesars Cipher - but also a series of unit tests that ensures its accuracy and reliability.
In the very end - I also have a 🏆 CHALLANGE 🏆 for you! So make sure you tune in at minute 23:10 to participate and practice your new set of skills! 💪

⭐ CLONE MY CODE ⭐
-----------------------------------------
https://app.wayscript.com/lairs/45150...

Also, please feel free to revise it and reshare your versions with the world!
Quick instructions of how to do this via Wayscript at minute 23:50

🚀 JUPYTER SYNTAX 🚀
-----------------------------------------
unittest.main(argv=[''], verbosity=2, exit=False)

📽️ RELATED TUTORIALS OF MINE 📽️
-----------------------------------------------------------------
⭐ Classes and OOP:
   • Python Classes and Objects - OOP for ...  
⭐ Inheritance and Private Class Members:
   • OOP Class Inheritance and Private Cla...  
⭐ If _name_ == "__main__" for Python Developers:
   • If __name__ == "__main__" for Python ...  
⭐ List Comprehension:
   • List Comprehension - BEST Python feat...  
⭐ Software Design and Development Exam Practice Stream:
   • Software Design and Development - Wha...  

⏰ TIMESTAMPS ⏰
-----------------------------------------
00:00 - Intro
01:19 - Three Laws of TDD
-----------------------------------------
TEST 1 - Test Data Exists
-----------------------------------------
02:07 - Basic syntax
03:59 - Jupyter Notebook syntax
04:30 - Assertion
06:28 - Production Code
07:32 - 2 minutes
-----------------------------------------
07:54 - Test Input Data Type
09:12 - Test Return Output
10:16 - Test Input and Output Length
11:45 - Test Input different from Output
14:28 - Test Output Data Type
15:46 - Test Caesars Cipher
20:40 - Test More Inputs
23:10 - Challenge for you!
23:50 - How to share your code via Wayscript
25:09 - Thanks for watching! :)

🤝 Connect with me 🤝
--------------------------------------
🔗 Github:
https://github.com/mariyasha
🔗 Discord:
  / discord  
🔗 LinkedIn:
  / mariyasha888  
🔗 Twitter:
  / mariyasha888  
🔗 Blog:
https://www.pythonsimplified.org

🎯 Sources 🎯
--------------------------------------
⭐ Python unittest Documentation:
https://docs.python.org/3/library/uni...
⭐ Professionalism and Test-Driven Development by Robert C. Martin:
https://ieeexplore.ieee.org/document/...

💳 Credits 💳
----------------------
⭐ Beautiful animated graphics by:
mixkit.co
⭐ Beautiful icons by:
flaticon.com

Комментарии

Информация по комментариям в разработке