AgentStack
SKILL verified MIT Self-run

Flutter Testing Standards

skill-ngxtm-devkit-testing · by ngxtm

Unit, widget, and integration testing using mocktail and bloc_test.

No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add skill-ngxtm-devkit-testing

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Flutter Testing Standards? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Testing Standards

Priority: P1 (HIGH)

Ensuring code reliability through multi-layered testing strategies.

Structure

test/
├── unit/ # Business logic & mapping (Blocs, Repositories, UseCases)
├── widget/ # UI component behavior (Screens, Widgets)
└── integration/ # End-to-end flows

Implementation Guidelines

  • Testing Pyramid: Maintain ~70% Unit Tests, ~20% Widget Tests, ~10% Integration Tests.
  • Mocks: Use mocktail for type-safe, boilerplate-free mocking.
  • Unit Tests: Test logic in isolation. Verify all edge cases (Success, Failure, Exception).
  • Widget Tests: Test high-value interactions (Button clicks, Error states, Loading indicators).
  • BLoC Tests: Use blocTest to verify state emission sequences.
  • Code Coverage: Aim for 80%+ coverage on Domain and Presentation (Logic) layers.

Deep Dive References

  • [Unit Testing Strategies](./references/unit-testing.md) (Test Data Builders, Mocktail)
  • [Widget Testing Strategies](./references/widget-testing.md) (Robot Pattern)
  • [Integration Testing](./references/integration-testing.md) (Shared Robots, Real Device)
  • [Robot Pattern Implementation](./references/robot-pattern.md)

Related Topics

layer-based-clean-architecture | dependency-injection | cicd

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.