filmov
tv
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 ⭐
-----------------------------------------
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 🚀
-----------------------------------------
📽️ RELATED TUTORIALS OF MINE 📽️
-----------------------------------------------------------------
⭐ Classes and OOP:
⭐ Inheritance and Private Class Members:
⭐ If __name__ == "__main__" for Python Developers:
⭐ List Comprehension:
⭐ Software Design and Development Exam Practice Stream:
⏰ 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:
🔗 Discord:
🔗 LinkedIn:
🔗 Twitter:
🔗 Blog:
🎯 Sources 🎯
--------------------------------------
⭐ Python unittest Documentation:
⭐ Professionalism and Test-Driven Development by Robert C. Martin:
💳 Credits 💳
----------------------
⭐ Beautiful animated graphics by:
⭐ Beautiful icons by:
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 ⭐
-----------------------------------------
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 🚀
-----------------------------------------
📽️ RELATED TUTORIALS OF MINE 📽️
-----------------------------------------------------------------
⭐ Classes and OOP:
⭐ Inheritance and Private Class Members:
⭐ If __name__ == "__main__" for Python Developers:
⭐ List Comprehension:
⭐ Software Design and Development Exam Practice Stream:
⏰ 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:
🔗 Discord:
🔗 LinkedIn:
🔗 Twitter:
🔗 Blog:
🎯 Sources 🎯
--------------------------------------
⭐ Python unittest Documentation:
⭐ Professionalism and Test-Driven Development by Robert C. Martin:
💳 Credits 💳
----------------------
⭐ Beautiful animated graphics by:
⭐ Beautiful icons by:
Комментарии