Live Coding: Building a Unit Testing Library like Pytest
Bhavani Ravi (~bhavaniravi) |
3
Description:
Have you ever used Pytest? Have you ever wondered what happens when you run pytest over your tests folder, create parametrized test cases, or use fixtures?
In this talk, we will find answers to all these by building our testing library. By the end of this talk, you will have a solid understanding of reverse engineering and how the internals of a testing library can be designed.
This talk will explore how to build a testing library from scratch.
- Introduction to Pytest and its features - 3 mins
- Building Test runners - 5 mins
- Building a parametrized test case handler - 8 mins
- Building a fixture handler - 8 mins
- Q&A - 5 mins
By the end of this talk, you will have a solid understanding of reverse engineering and building a testing library from scratch.
Prerequisites:
Python and Pytest
Content URLs:
https://docs.google.com/presentation/d/1mplQi6qG2_zwwbOhx4CocaS3rWYFhTDCTpNPqGS4UeQ/edit#slide=id.g25d392b8e5b_0_6
Speaker Info:
Bhavani Ravi has been an Independent Software Consultant specialized in Python backend and Data Engineering. She has contributed to Open source libraries like Pandas and Airflow. She advocates for diversity and inclusion and loves teaching Python to other people.
Speaker Links:
https://bhavaniravi.com