Python unit testing - skip/selectively run tests in pytest

preview_player
Показать описание
This python tutorial will guide us about how to skip test in python, skipif() test method, run test base on the name, run test by category and how to create test custom makers.

Topics that are covered in this Python Video:
0:00 Overview
1:28 How to Skip test in python
2:50 skipif() test method
5:04 Run test base on the name
7:18 Run test by category
9:14 create test custom markers (tags)

Next Video:

Рекомендации по теме
Комментарии
Автор

Awesome video. Clearly explained the motivation behind markers by starting off with skip tests and testing based on a string in the function. Thanks.

akkineniajay
Автор

Simple and clear. Keep up the good work!

onsmribah
Автор

I gave up learning nosetest because of lack of tutorials. I switched to Pytest when I found these tutorials.

ulfen
Автор

Thank you so much for this video! Have one question though. In skipif condition, why you use (3, 5) not 3.5 to express python version 3.5? Why does it have to be in tuple?

elliekongnamul
Автор

Thanks sir .
Please upload.
Unittest, threading, logging mthods also

thirumalareddy
Автор

shit man, this video deserves more views.

thegoz
Автор

Can multiple properties be assigned on a test function ? Say I want to tag a test function as both mac, windows? Please let know...Thanks codebasics...!!

shivasiddharthnarayanan
Автор

Really i must say thanks for your simple way of teaching. Love your videos. It would be really helpful if you could make videos on advanced concepts like framework for Selenium with python using pytest framework.

mubarakl
Автор

Why do we have a Red underline for the name of the file imported in the test file? (i.e underline to the keyword 'mathlib' at the line "import mathlib")?

BrandValors
Автор

I am running python 3.5 on windows 10 and I have python folder on the system path. When I run c:\python>pytest
I get 'pytest' is not recognized as an internal or external command. Please help. Thanks.

mikez
Автор

Video is great but didn't you missed "custom markers".

devendratapdia