Coder Social home page Coder Social logo

aimirghani / pytest-tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from talkpython/getting-started-with-pytest-course

0.0 0.0 0.0 110 KB

Course materials and handouts for Getting started with pytest course

Home Page: https://talkpython.fm/pytest

License: MIT License

Python 96.82% Makefile 3.18%

pytest-tutorial's Introduction

Getting started with pytest course

Course materials and handouts for Getting started with pytest course.

Getting started with pytest

This course teaches you to effectively use Python's most popular and powerful test framework, pytest. pytest is partly so widely used because it's so fast to get started. However, many people stop with the basics and never learn pytest's true power.

In Getting started with pytest, you'll do so much more than just get started. You'll learn the five super powers of pytest: simple test functions, fixtures, parametrization, markers, and plugins. With this knowledge, you'll be able to test more effectively and efficiently, whenever you need to write software tests.

What will you learn?

In this course, you will:

  • Build clean, readable, well structured test functions
  • Utilize fixtures to hold setup, teardown, and test data
  • Share fixtures between tests and between test files
  • Trace test execution through tests and fixtures to help debug tests
  • Use test parametrization to create reams of test cases with a small number of test functions
  • Identify test parametrizations cleanly with test ids
  • Learn to skip tests with markers
  • Run subsets of tests using keywords, markers, test classes, and combinations of these techniques
  • Expand pytest functionality with pytest plugins
  • And lots more
  • View the full course outline

Who is this course for?

This course is for anyone who needs to test Python code, or anything reachable via Python code. Yep, pytest is being used to test APIs, web services, embedded systems, hardware, and of course Python packages, applications, and utilities.

Since many people are writing test code alongside their other work, the techniques presented in this course are focused on those that help you be efficient and effective with pytest.

Of course you can use these techniques if you are spending most of your time writing tests.

This course will be useful for software engineers of all flavors, including test engineers.

As for prerequisites, we assume:

  • No software testing experience required
  • Familiarity with Python would be helpful

Get better at pytest

pytest has become the defacto way we test Python software. If you are not up to speed with pytest and clean test practices, you'll be at a disadvantage. This course is focused on using the best techniques to provide a deep and meaningful understanding of software testing with pytest. Take the course, level up your productivity today.

pytest-tutorial's People

Contributors

okken avatar mikeckennedy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.