Testing Your "TESTS"

Aniket Maithani (~aniket)


5

Votes

Description:

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
  • Fixtures

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.

Prerequisites:

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)

Content URLs:

Previous Talks & Other Links :

Speaker Info:

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!

Section: Testing
Type: Talks
Target Audience: Beginner
Last Updated:

Could you please post links to your slides, asap.

Would be great if you could add links to your prior talks, videos of those talks.

Akshay Arora (~akshayaurora)

@Akshay I have updated the links for my previous talks : pasting them here as well.

Previous Talks & Other Links :

Aniket Maithani (~aniket)

Entire duration for the talk is 30 mins, so the content for your talk should fit in 20 mins in order to manage some spillover and yet have some time for interaction.

Anuvrat Parashar (~bhanuvrat)

content seems to indicate a rather elaborate introduction to writing tests in python, while the title indicates writing "tests for tests". Could you clarify?

Anuvrat Parashar (~bhanuvrat)

Sure. The main concept behind the title is that more often beginners, write tests so that they JUST pass rather than testing the underlying feature-set. And hence taking that factor into consideration I have used the title Testing Your Tests and hence I have put this up as a beginner level talk. Hope you got my point

Aniket Maithani (~aniket)

@Anuvrat : Also if you want I can adjust my slides accordingly to limit the talk time to 20 mins. :)

Aniket Maithani (~aniket)

Login to add a new comment.