Тёмный
No video :(

Test-Driven Development in Python: Test First Code Later 

NeuralNine
Подписаться 364 тыс.
Просмотров 11 тыс.
50% 1

Today we learn about test-driven development and how to easily do it in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
💼 Services 💼
💻 Freelancing & Tutoring: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@mehdimojaradi
@mehdimojaradi 9 месяцев назад
I have been waiting for this concept with your elequent way of teaching. Thanks indeed not only for this episode but also for all other ones.
@zackplauche
@zackplauche 9 месяцев назад
One question from the beginning: How is building a calculator class the first step if you're supposed to write your test first then code?
@NLCircle
@NLCircle 9 месяцев назад
NeuralNine, thank you for another high quality, conchise and clear introduction to a Python feature. Extremely helpful and I like to comment you for the way you break down the 'problem' and turn it into a tutorial on how to approach this myself.
@pablocastaneda4021
@pablocastaneda4021 7 месяцев назад
intro is sooo good! I would buy for a ringtone!
@definite_d
@definite_d 20 дней назад
It's in the video description
@user-hx1ju5ox9v
@user-hx1ju5ox9v 9 месяцев назад
Dude, i am studying at ITMO in Russia, and I really want to thank you for the video, python tests are my homework)
@ScriptRaccoon
@ScriptRaccoon 9 месяцев назад
I prefer using pytest since I don't have to write the boilerplate as with the unittest module. Also, the combination with pytest-cov gives nice coverage reports.
@13137713
@13137713 7 месяцев назад
Thanks, it was really helpful! I've just learnt this TDD thing and wanted to try and implement it myself in my hobby project.
@BrandonNewell222
@BrandonNewell222 9 месяцев назад
this is really well done thank you. I would love it you did more on TDD
@donewithwork
@donewithwork 9 месяцев назад
Awesome tutorial. Thanks :)
@duftcola
@duftcola 9 месяцев назад
I have to say that while in theory this a good way of making things I find often that testing doenst allow you to keep up the speed of the project and at the I just end up running the application and see what crashes and a folder full of unitest that became outdated
@GSK-Tech
@GSK-Tech 9 месяцев назад
but if we follow SOLID Principles from start , we can control outdated issues
@no-wl4qw
@no-wl4qw 9 месяцев назад
​@@GSK-Techfollow the principle would make those unitests still valid, but it's coverage is so little as the project grow so fast that you won't able to make test for every unit.
@chriskeo392
@chriskeo392 9 месяцев назад
​@@no-wl4qwyupp
@GSK-Tech
@GSK-Tech 9 месяцев назад
@@no-wl4qw thats the reason we implement design Architectures and divide things in modules if our project is too large. Yes it turns into complex file and trees but everything is loose coupling and easy to refactor.
@ScriptRaccoon
@ScriptRaccoon 9 месяцев назад
This is not a problem with unit testing. It shows that unit testing hasn't been properly implemented in the team. Otherwise you would not suddenly have failing tests (of course, they should run in the CI, and all new features get tests).
@zapy422
@zapy422 3 месяца назад
How to define test dependencies?
@jparks6544
@jparks6544 7 месяцев назад
If you are going to do this type of thing, you should really use the testing package that is the most popular. unittest is VERY old.
@arkadiuszpaterak
@arkadiuszpaterak 9 месяцев назад
Which in your opinion is better, unittest or pytest?
@krzysiekkrzysiek9059
@krzysiekkrzysiek9059 9 месяцев назад
Pytest offers more functionality and its more intuitive for me. I use it for WebDev within Selenium.
@holthuizenoemoet591
@holthuizenoemoet591 9 месяцев назад
How to do this but with notebooks?
@holthuizenoemoet591
@holthuizenoemoet591 9 месяцев назад
would the statement if not instanace(x, int) and not instance(x, float) be always false in the case of a number?
@TheMCEnthusiastPlays
@TheMCEnthusiastPlays 9 месяцев назад
it sorta depends on your definition of a number, but yes, usually the statement will be false if you pass a valid number for x. this /may/ not always be true though. if you're using numpy, or another library that includes different classes for representing numbers other than the built-ins, you could find yourself in a situation where you're expecting a default float and you pass it a numpy.double and you would raise a TypeError. you should not run into this problem a whole lot, since you should know what data types you're passing as arguments, but if you're learning a new library or you're just working on some funky code with weird numerical types, but it's something worth paying attention to
@JorgeEscobarMX
@JorgeEscobarMX 9 месяцев назад
magic mocks and patch next?
@TianMuYe
@TianMuYe 9 месяцев назад
Where is vim😢
@philtoa334
@philtoa334 9 месяцев назад
Thx_.
Далее
Garbage Collection in Python: Speed Up Your Code
16:41
Modern Python logging
21:32
Просмотров 179 тыс.
Oh No! My Doll Fell In The Dirt🤧💩
00:17
Просмотров 11 млн
Argument Parsing with argparse in Python
11:27
Просмотров 14 тыс.
Making a Good Project Great
Просмотров 149
Massive Python Speed-Up: Caching Across Sessions
10:07
Modern Graphical User Interfaces in Python
11:12
Просмотров 1,5 млн
Advanced Python Dictionaries with Benedict
10:23
Просмотров 10 тыс.
15 Python Libraries You Should Know About
14:54
Просмотров 384 тыс.
Debug Running Python Processes with GDB
12:19
Просмотров 6 тыс.