Skip to main content
Loading page…
Python Mastery
Chapter 26
Lesson 4 of 4
Multi-Env Testing with tox, nox & CI
Contents
Notes
Tutor
Concept
Why Multi-Environment Testing Matters
Loading activity…
Previous
1 / 12
Continue
Contents
Notes
Discussion
Tutor
24 min
12 activities
0 of 12 done
In this lesson
1
Why Multi-Environment Testing Matters
2
tox.ini: Testing Across Python Versions
3
noxfile.py: Python-Native Sessions
4
Anatomy of a Minimal tox.ini
5
GitHub Actions Matrix That Mirrors tox Environments
6
pytest Markers: Categorizing Tests
7
Test Organization at Scale
8
Plugging Tests into CI (GitHub Actions)
9
Building a Robust Test Suite: Checklist
10
Test Types: Unit, Integration, or E2E?
11
pytest CLI Flags: What Does Each Do?
12
tox vs nox: When Would You Choose Each?
Objectives
Write a tox.ini that tests against multiple Python versions
Use nox as a Python-native alternative to tox
Organize tests with pytest markers and run subsets efficiently
Distinguish fast unit tests from slow integration/e2e tests
Describe how a robust test suite integrates into a CI pipeline
Chapter 26 · Advanced Testing: Hypothesis, Faker & Coverage
Property-Based Testing with Hypothesis
Fixtures, Factories & Fake Data
Coverage & Test Quality
Multi-Env Testing with tox, nox & CI
Previous: Coverage & Test Quality
Next: HTTP & the requests Library