feature-tests

Generate a markdown outside-in test specification for a Flutter feature slice.

2|Updated Aug 13, 2023
One-click install
npx skills add https://github.com/NNPopov/movie-theater-tickets --skill feature-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-tests
Source: https://github.com/NNPopov/movie-theater-tickets/tree/main/src/clients/.claude/skills/feature-tests
Command: npx skills add https://github.com/NNPopov/movie-theater-tickets --skill feature-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill turns a slice's product, plan, requirements, and validation notes into one clear outside-in integration test specification, so teams can define end-to-end behavior before writing Dart code.

Core Features & Use Cases

  • Slice-level test planning: Describes a single test that exercises the feature through its public Cubit surface.
  • Boundary-aware design: Distinguishes what should be wired real from what should be mocked at system boundaries.
  • Markdown-only output: Produces a ready-to-save tests.md contract for the target slice without generating implementation code.

Quick Start

Use the feature-tests skill to write tests.md for the currently active slice after confirming prd.md, plan.md, requirements.md, and validation.md are present.

Frequently Asked Questions about feature-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write outside-in integration tests for a Flutter feature slice?

You write outside-in integration tests for a Flutter feature slice by generating a markdown specification that exercises the feature through its public Cubit surface, using real production wiring for domain and data layers while mocking external boundaries like Dio.

What is slice testing in Flutter and when do I need it?

Slice testing in Flutter is defining a single end-to-end scenario that validates a feature slice before code is written. You need it when you have prd.md, plan.md, requirements.md, and validation.md ready and want to establish a tests.md contract.

How do I generate a tests.md contract for a Flutter Cubit without writing implementation code?

You generate a tests.md contract for a Flutter Cubit by using a feature-tests skill that transforms your slice's product, plan, requirements, and validation notes into a ready-to-save markdown test specification without generating any Dart implementation code.

Do I need prd.md and plan.md files before generating a Flutter feature test specification?

Yes, you need prd.md, plan.md, requirements.md, and validation.md files present in your slice directory before generating a Flutter feature test specification, as these documents provide the necessary context for the end-to-end scenario.

How do you mock system boundaries like Dio in Flutter integration tests?

You mock system boundaries like Dio in Flutter integration tests by distinguishing what should be wired real from what should be mocked at external services, keeping the domain and data layers wired with real production code while substituting system boundaries.

What is the difference between slice tests and unit tests in Flutter?

Slice tests differ from unit tests by exercising a feature end-to-end through its public Cubit surface with real domain and data wiring, whereas unit tests isolate individual components without validating the full feature behavior or system boundaries.