test-async-guardian

Community

Guard Dart tests from hanging due to async work.

Authortarrragon
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps prevent Dart/Flutter tests from hanging due to unmanaged asynchronous resources by enforcing best practices and scanning for common pitfalls.

Core Features & Use Cases

  • TearDown-driven cleanup: ensures unfinished async operations are cleaned up between tests.
  • Resource leak detection: scans for long delays, un-cancelled timers, and unclosed StreamControllers.
  • Pre-run guidance: provides actionable recommendations before flutter/dart test runs.

Quick Start

Run the async resource scanner on tests: uv run scripts/async_resource_scanner.py test/unit/ --recursive Review the generated issues and apply tearDown/dispose cleanups as suggested.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: test-async-guardian
Download link: https://github.com/tarrragon/claude/archive/main.zip#test-async-guardian

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.