Objective
Introduce pytest for writing automated tests. pytest can be used for writing any kind of automated testing including unit tests, integration tests, functional tests etc. This talk will cover installation, writing test cases, writing test fixtures and best practices.
Description
This talk will start with an introduction to automated testing in Python. A quick comparison of various testing tools.
- Installation of pytest and setting up test environment.
- Writing simple test cases using pytest
- Writing test fixtures
- Quick overview of useful plugins (xdist, coverage etc.)
- Best practices
Requirements
Basic understanding of Python programming
Basic understanding of testing concepts
Speaker bio
Baiju Muthukadan is a Python developer working as a Technical Architect at ZeOmega, Bangalore. He has been a contributor to Zope project since 2006 and has authored the book titled, A Comprehensive Guide to Zope Component Architecture. He founded the Swathanthra Malayalam Computing project in 2001 while studying at REC, Calicut. He was also employed by Free Software Foundation of India in 2002-2003. He had contributed to Koha in 2003-2004 years and also implemented it in few libraries during that time. Baiju has conducted many Python related talks and workshops in various parts of India including FOSS.IN. He is the main author of Selenium Python documentation. During PyCON India 2013, he received the first Kenneth Gonsalves Award.