Testing Your "TESTS"
Aniket Maithani (~aniket) |
We all love to code, Don't we? but is writing the code enough??! Certainly not!
Since we assume that our code may have mistakes, hence we all need to check our own code. However some mistakes come from bad assumptions and blind spots, so we might make the same mistakes when we check our own code as we made when we did it. So we may not notice the flaws in what we have done.
Ideally, we should get someone else to check our code because another person is more likely to spot the flaws.
There are several reasons which clearly tells us as why Writing tests along with the development of the module is important and what are the major things that we should consider while testing of any product or application.
The following talk will focus on the following agenda :
- Why Testing is important
- How to write Test(s).
- Unit, Functional and Integration Testing
- Introduction to Py-Test
- Mocking & Patching
Pytest : pytest is a Python based testing library/tool which helps to write test(s) in an easy, convenient fashion.
Mock : is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.
Pre-requisites for the talk :
- Basic Python Knowledge
- Hands-On Experience of writing module(s) in Python
- Idea about Testing Guidelines (On a basic level)
- The draft of the talk lies here : https://github.com/aniketmaithani/pydehli-2017-proposal
- Presentation Link - [Work In Progress] (But meanwhile you can check the sample presentation at the mentioned link
Previous Talks & Other Links :
My name is Aniket Maithani. I'll keep this short
- Works @Corseco Technologies
- Handles Development & Dev-Ops
- B.Tech (CS&E) graduate from Amity University, Noida (UP)
- Loves to travel
- Blog during free time
- Cricket Lover
- "CHAI" addict
- Plays Guitar too!