How to build a unit testing library from scratch?

Bhavani Ravi (~bhavaniravi)


2

Votes

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.

  1. Introduction to Pytest and its features - 3 mins
  2. Building Test runners - 5 mins
  3. Building a parametrized test case handler - 8 mins
  4. Building a fixture handler - 8 mins
  5. 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

Section: Developer tools and automation
Type: Talks
Target Audience: Advanced
Last Updated: