Python Unit Testing With Pytest 3 - Parameterizing tests (pytest.mark.parametrize)

preview_player
Показать описание

What is Unit Testing - According to wikipedia, unit testing is a software testing method by which individual units of source code are tested to determine whether they are fit for use.

Why Unit Test? -
Tests Reduce Bugs in New Features and Existing Features
Tests Are Good Documentation
Tests Reduce the Cost of Change
Faster Debugging
Faster Development
Better Design

Python Testing frameworks
unittest - In the Python Standard Library
nose - Not in the Standard Library. Simpler tests than unittest
pytest - Not in the Python Standard Library.

run with following command:
or

#PythonTutorialforBeginners #ProgrammingKnowledge #PyTest #PythonCourse.
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

python just blows my mind, how you have to pass something as a string and then in the next line not as a string lol, coming from embedded C this is what i struggle with the most, how on earth to figure out when to use what

EdwinFairchild
Автор

It was very good explained. Thank you very much.

iaroslavz
Автор

Thanks a lot, man. Wish you be happy and healthy! Your video helped me

uniqqquniqqq
Автор

this just "assumes", that A PC 'is'
available 2 run the program, those that have had their drives Wiped clean, (by others, outside PC access), R just S.O.L. correct ??

dant.hasbrouck
Автор

is that possible to use two different test function using in this parameterise method

ajithmsm