Newsletter #242: Build Faster Test Workflows with pytest Markers
📅
Today’s Picks
Build Faster Test Workflows with pytest Markers
Problem:
Large projects often contain hundreds of tests, and executing them all for every minor change quickly becomes inefficient.
Solution:
Pytest markers let you group tests by type, speed, or resource usage so you can run only what matters for your current task.Quick guide to pytest markers:
Define markers in pytest.ini
Tag tests, for example: @pytest.mark.fast
Run specific tests: pytest -m fast
Skip certain tests: pytest -m “not slow”
Learn More:
Production-Ready Data Science: From Prototyping to Production with Python
Run Code
📢
ANNOUNCEMENTS
Production-Ready Data Science Is Now on Leanpub
I am excited to share that Production-Ready Data Science is now live on Leanpub!On Leanpub, you can choose your price and get updates as more examples and chapters roll out.This book dives into the real engineering skills behind dependable data systems, including:
Testing
CI and CD
Environments and packaging
Data validation and logging
Reproducible workflows
If you want to take your data work beyond notebooks and into reliable production environments, this is for you.
Get the Book
☕️
Weekly Finds
Data Viz
Automatically Visualize any dataset, any size with a single line of code
LLM
Memory for AI Agents in 6 lines of code
Python Utils
Simple, yet elegant, Python HTTP library: a drop-in replacement for python-requests
Favorite
Newsletter #242: Build Faster Test Workflows with pytest Markers Read More »









