Thx to a coworder, TIL about "pytest --lf" which means "last-fail" and will replay the last failing test first.

Great for super long test suite.

@bram I often use --sw (aka --stepwise): same -x but restart from there on next call. Very handy for refactoring sessions.

Sign in to participate in the conversation

This is a mastodon instance for social justice activists, LGBTQIA+ people, and activists in general See the Goals and technical details, and Rules and privacy policy pages for more information