Skip to Content
Cloud Native Pytest Tips and Tricks from Ground Zero
on-demand course

Cloud Native Pytest Tips and Tricks from Ground Zero

with Alfredo Deza, Noah Gift
May 2022
Advanced
2h 39m
English
Pragmatic AI Labs

Overview

Learn to master Pytest via these tips and tricks 00:00 Intro 01:00 Key Concepts in Testing 10:00 Key Testing Terminology 15:00 Kazien equals DevOps 18:22 Setup Github 23:00 Setup Github Codespaces 25:00 Explaining Python pip freeze 33:00 Create Makefile 37:00 Pin requirements.txt 38:00 Cloud development environment concepts: AWS Cloud9 to Github Codespaces 43:00 Setup Github Actions 44:00 Configuring Matrix testing of Python 48:00 Building simple Python scripts as part of CI/CD and linting them with Pylint 56:00 Setup AWS CloudShell for CI/CD 01:00:09 Adding Python 3.7, 3.8, 3.9 and 3.10 to Matrix testing 01:04:00 Setup AWS Cloud9 01:11:00 Refactoring Python project to include testing directory and library directory 01:19:00 Setup Python Test Coverage 01:22:00 Adding Pytest to Github Actions YAML file 01:29:00 Creating Python library file that searches wikipedia and tests it 01:36:00 Adding Python Fire command-line tool 01:42:00 Running Pytests by search expression 01:44:30 Running Pytests by specifying tests 01:46:00 Marking tests in Pytest and avoiding slow tests 01:48:00 Profiling testing speed using Pytest 01:56:39 Doing distributed testing with xdist to spread tests to multiple cores 02:05:21 Created distributed testing group to distribute to multiple cores 02:09:00 Setup 32 Core 60GB RAM Cloud9 Machine to run massively parallel Pytests 02:13:58 Running distributed testing that doubles the speed of the tests 02:23:00 Setup Cloud-Native AWS Code Build testing with buildspec.yml that does distributed testing to 8 Core Build client

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Watch now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Quickstart Python Fire Command Line Interface (CLI)

Quickstart Python Fire Command Line Interface (CLI)

Alfredo Deza, Noah Gift
Deploying containers to Azure

Deploying containers to Azure

Alfredo Deza, Noah Gift
Robust Python CLI

Robust Python CLI

Alfredo Deza, Noah Gift
PyTest Tips Video Course

PyTest Tips Video Course

Alfredo Deza, Noah Gift

Publisher Resources

ISBN: 05122022VIDEOPAIMLOtherOtherOther