How to build a unit testing library from scratch?
Bhavani Ravi (~bhavaniravi) |
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 own 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:
This talk would make the best sense if you've used Pytest before and have understanding of advanced Python constructs like Decorators and Context managers
Speaker Info:
Bhavani Ravi is an Independent Software Engineer who has been in the Python ecosystem for 7 years. She has contributed to Opensource libraries like Pandas and Airflow.
Speaker Links:
- https://www.bhavaniravi.com/about-me/talks
- https://www.bhavaniravi.com/about-me/opensource-contributions