Skip to content
Back to skills

Debug Hanging Tests

ASecurity

Procedure for diagnosing a test suite that hangs at exit — find the live thread, map it to a fixture, fix teardown.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
developmenttestingdebugging

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add zbmowrey/strata --skill debug-hanging-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debug Hanging Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debug Hanging Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zbmowrey-debug-hanging-tests/badge)](https://www.skillsdirectory.com/skills/zbmowrey-debug-hanging-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: debug-hanging-tests
description: Procedure for diagnosing a test suite that hangs at exit — find the live thread, map it to a fixture, fix teardown.
tags: [testing, debugging]
shards: [pytest-fixture-teardown, hanging-test-diagnosis]
---
# Debugging a hanging test suite

1. Confirm the hang happens after the last test (summary printed).
2. `py-spy dump --pid <pid>`; look for non-daemon threads.
3. Map the thread to a fixture; check [[pytest-fixture-teardown]].
4. Run `strata run find-leaked-fixtures -- --path tests/`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.