[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7195GQDWYAF8QPW1P4DX88Z":3,"skill-same:01M7195GQDWYAF8QPW1P4DX88Z":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":27,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":59,"install":60,"resources":73},"01M7195GQDWYAF8QPW1P4DX88Z","flutter-testing-apps",null,"Implements unit, widget, and integration tests for a Flutter app. Use when ensuring code quality and preventing regressions through automated testing.","openplaybooks-dev\u002Fconverge","openplaybooks-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F270560357?v=4","01M7191G17AHW5SXN63HJ0BEZV","01M7191G29922BDNWN8CFVG4PD",3,"MIT","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fexamples\u002Fflutter-app\u002F.converge\u002Fskills\u002Fflutter-testing-apps\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"flutter testing","testing","apps","flutter","flutter testing apps","widget","integration","quality","automated testing","use","tests","for","integration tests","code quality","flutter app","code","when","app","unit","2026-11-10 10:12:30",false,"---\nname: flutter-testing-apps\ndescription: Implements unit, widget, and integration tests for a Flutter app. Use when ensuring code quality and preventing regressions through automated testing.\n---\n# Testing Flutter Applications\n\n## Contents\n- [Core Testing Strategies](#core-testing-strategies)\n- [Architectural Testing Guidelines](#architectural-testing-guidelines)\n- [Workflows](#workflows)\n- [Examples](#examples)\n\n## Core Testing Strategies\n\nBalance your testing suite across three categories to optimize for confidence, maintenance cost, and execution speed.\n\n### Unit Tests\nVerify the correctness of a single function, method, or class.\n- Mock all external dependencies.\n- Do not involve disk I\u002FO, screen rendering, or user actions.\n- Execute using the `test` or `flutter_test` package.\n\n### Widget Tests\nEnsure a single widget's UI looks and interacts as expected.\n- Provide widget lifecycle context using `WidgetTester`.\n- Use `Finder` classes to locate widgets and `Matcher` constants to verify state.\n- Test views and UI interactions without the full application.\n\n### Integration Tests\nValidate how individual pieces work together and capture performance metrics on real devices.\n- Add the `integration_test` package as a dependency.\n- Run on physical devices, OS emulators, or Firebase Test Lab.\n- Prioritize for routing, dependency injection, and critical user flows.\n\n## Architectural Testing Guidelines\n\nDesign for observability and testability:\n- **ViewModels\u002FProviders**: Unit test every provider. Test UI logic without Flutter framework dependency.\n- **Repositories & Services**: Unit test with mocked data sources (HTTP clients, databases).\n- **Views**: Widget test all views. Pass faked or mocked providers to isolate UI.\n- **Fakes over Mocks**: Prefer `Fake` implementations over mocking libraries for well-defined inputs and outputs.\n\n## Workflows\n\n### Implementing a Component Test Suite\n- [ ] Create `Fake` implementations for Repositories or Services.\n- [ ] Write Unit Tests for the Repository (mocking API\u002FDatabase).\n- [ ] Write Unit Tests for the ViewModel\u002FProvider (injecting Fakes).\n- [ ] Write Widget Tests for the View (injecting providers and Fakes).\n- [ ] Write an Integration Test for the critical path.\n- [ ] Review coverage and fix missing edge cases.\n\n### Running Integration Tests\n- **Mobile (Local):** `flutter test integration_test\u002Fapp_test.dart`\n- **Web:** Launch ChromeDriver, then `flutter drive --driver=test_driver\u002Fintegration_test.dart --target=integration_test\u002Fapp_test.dart -d chrome`\n\n## Examples\n\n### ViewModel\u002FProvider Unit Test\n\n```dart\nimport 'package:flutter_test\u002Fflutter_test.dart';\n\nvoid main() {\n  group('HomeViewModel tests', () {\n    test('Load bookings successfully', () {\n      final viewModel = HomeViewModel(\n        bookingRepository: FakeBookingRepository()..createBooking(kBooking),\n        userRepository: FakeUserRepository(),\n      );\n      expect(viewModel.bookings.isNotEmpty, true);\n    });\n  });\n}\n```\n\n### View Widget Test\n\n```dart\nimport 'package:flutter\u002Fmaterial.dart';\nimport 'package:flutter_test\u002Fflutter_test.dart';\n\nvoid main() {\n  group('HomeScreen tests', () {\n    late HomeViewModel viewModel;\n\n    setUp(() {\n      viewModel = HomeViewModel(\n        bookingRepository: FakeBookingRepository()..createBooking(kBooking),\n        userRepository: FakeUserRepository(),\n      );\n    });\n\n    testWidgets('renders bookings list', (WidgetTester tester) async {\n      await tester.pumpWidget(\n        MaterialApp(home: HomeScreen(viewModel: viewModel)),\n      );\n      expect(find.byType(ListView), findsOneWidget);\n      expect(find.text('Booking 1'), findsOneWidget);\n    });\n  });\n}\n```\n\n### Integration Test\n\n```dart\nimport 'package:flutter\u002Fmaterial.dart';\nimport 'package:flutter_test\u002Fflutter_test.dart';\nimport 'package:integration_test\u002Fintegration_test.dart';\nimport 'package:my_app\u002Fmain.dart';\n\nvoid main() {\n  IntegrationTestWidgetsFlutterBinding.ensureInitialized();\n\n  group('end-to-end test', () {\n    testWidgets('tap FAB, verify counter', (tester) async {\n      await tester.pumpWidget(const MyApp());\n      expect(find.text('0'), findsOneWidget);\n\n      await tester.tap(find.byKey(const ValueKey('increment')));\n      await tester.pumpAndSettle();\n\n      expect(find.text('1'), findsOneWidget);\n    });\n  });\n}\n```\n","# Testing Flutter Applications\n\n## Contents\n- [Core Testing Strategies](#core-testing-strategies)\n- [Architectural Testing Guidelines](#architectural-testing-guidelines)\n- [Workflows](#workflows)\n- [Examples](#examples)\n\n## Core Testing Strategies\n\nBalance your testing suite across three categories to optimize for confidence, maintenance cost, and execution speed.\n\n### Unit Tests\nVerify the correctness of a single function, method, or class.\n- Mock all external dependencies.\n- Do not involve disk I\u002FO, screen rendering, or user actions.\n- Execute using the `test` or `flutter_test` package.\n\n### Widget Tests\nEnsure a single widget's UI looks and interacts as expected.\n- Provide widget lifecycle context using `WidgetTester`.\n- Use `Finder` classes to locate widgets and `Matcher` constants to verify state.\n- Test views and UI interactions without the full application.\n\n### Integration Tests\nValidate how individual pieces work together and capture performance metrics on real devices.\n- Add the `integration_test` package as a dependency.\n- Run on physical devices, OS emulators, or Firebase Test Lab.\n- Prioritize for routing, dependency injection, and critical user flows.\n\n## Architectural Testing Guidelines\n\nDesign for observability and testability:\n- **ViewModels\u002FProviders**: Unit test every provider. Test UI logic without Flutter framework dependency.\n- **Repositories & Services**: Unit test with mocked data sources (HTTP clients, databases).\n- **Views**: Widget test all views. Pass faked or mocked providers to isolate UI.\n- **Fakes over Mocks**: Prefer `Fake` implementations over mocking libraries for well-defined inputs and outputs.\n\n## Workflows\n\n### Implementing a Component Test Suite\n- [ ] Create `Fake` implementations for Repositories or Services.\n- [ ] Write Unit Tests for the Repository (mocking API\u002FDatabase).\n- [ ] Write Unit Tests for the ViewModel\u002FProvider (injecting Fakes).\n- [ ] Write Widget Tests for the View (injecting providers and Fakes).\n- [ ] Write an Integration Test for the critical path.\n- [ ] Review coverage and fix missing edge cases.\n\n### Running Integration Tests\n- **Mobile (Local):** `flutter test integration_test\u002Fapp_test.dart`\n- **Web:** Launch ChromeDriver, then `flutter drive --driver=test_driver\u002Fintegration_test.dart --target=integration_test\u002Fapp_test.dart -d chrome`\n\n## Examples\n\n### ViewModel\u002FProvider Unit Test\n\n```dart\nimport 'package:flutter_test\u002Fflutter_test.dart';\n\nvoid main() {\n  group('HomeViewModel tests', () {\n    test('Load bookings successfully', () {\n      final viewModel = HomeViewModel(\n        bookingRepository: FakeBookingRepository()..createBooking(kBooking),\n        userRepository: FakeUserRepository(),\n      );\n      expect(viewModel.bookings.isNotEmpty, true);\n    });\n  });\n}\n```\n\n### View Widget Test\n\n```dart\nimport 'package:flutter\u002Fmaterial.dart';\nimport 'package:flutter_test\u002Fflutter_test.dart';\n\nvoid main() {\n  group('HomeScreen tests', () {\n    late HomeViewModel viewModel;\n\n    setUp(() {\n      viewModel = HomeViewModel(\n        bookingRepository: FakeBookingRepository()..createBooking(kBooking),\n        userRepository: FakeUserRepository(),\n      );\n    });\n\n    testWidgets('renders bookings list', (WidgetTester tester) async {\n      await tester.pumpWidget(\n        MaterialApp(home: HomeScreen(viewModel: viewModel)),\n      );\n      expect(find.byType(ListView), findsOneWidget);\n      expect(find.text('Booking 1'), findsOneWidget);\n    });\n  });\n}\n```\n\n### Integration Test\n\n```dart\nimport 'package:flutter\u002Fmaterial.dart';\nimport 'package:flutter_test\u002Fflutter_test.dart';\nimport 'package:integration_test\u002Fintegration_test.dart';\nimport 'package:my_app\u002Fmain.dart';\n\nvoid main() {\n  IntegrationTestWidgetsFlutterBinding.ensureInitialized();\n\n  group('end-to-end test', () {\n    testWidgets('tap FAB, verify counter', (tester) async {\n      await tester.pumpWidget(const MyApp());\n      expect(find.text('0'), findsOneWidget);\n\n      await tester.tap(find.byKey(const ValueKey('increment')));\n      await tester.pumpAndSettle();\n\n      expect(find.text('1'), findsOneWidget);\n    });\n  });\n}\n```\n",{"name":5,"description":7},"main","7d618d8bc059f1a0974706d1d15ec25f73cf1e1d","examples\u002Fflutter-app\u002F.converge\u002Fskills\u002Fflutter-testing-apps",1,"https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge","https:\u002F\u002Fplaybooks.to","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev","2026-06-13 10:11:21",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add openplaybooks-dev\u002Fconverge --skill flutter-testing-apps",{"tool":66,"command":67},"bunx","bunx skills add openplaybooks-dev\u002Fconverge --skill flutter-testing-apps",{"tool":69,"command":70},"pnpm","pnpm dlx skills add openplaybooks-dev\u002Fconverge --skill flutter-testing-apps","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fexamples\u002Fflutter-app\u002F.converge\u002Fskills\u002Fflutter-testing-apps\u002FSKILL.md",true,[],[75,98,107,129,154,178],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":84,"publishedAt":47},"01M71989MQF3GPZ7P5TX6S93PD","hello-checker","Use this skill when asked to \"verify\", \"check\", or \"validate\" a file's existence and content. It provides a reliable workflow for confirming files meet their spec.","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Ftests\u002Ftest-codex-real\u002F.converge\u002Fskills\u002Fhello-checker\u002FSKILL.md",[81],{"categoryNo":82,"categoryName":83,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[85,86,87,88,37,89,90,91,92,93,94,95,44,96,97,39],"checker","hello checker","hello","it","content","validate","spec","verify","check","file","workflow","Meet","files",{"skillNo":99,"name":100,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":104,"publishedAt":47},"01M7198823W79B3S15TPV97TCB","ask-skill","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Ftests\u002Ftest-ask-autonomous\u002F.converge\u002Fplaybooks\u002Fdefault\u002Fskills\u002Fask-skill\u002FSKILL.md",[103],{"categoryNo":82,"categoryName":83,"taxonomyType":20,"taxonomyTypeDesc":21},[105,106],"ask skill","ask",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":117,"publishedAt":47},"01M71986EJ6VCM8YKGEM2YEDQV","html-review-artifact","Framework-wide guidance for crafting polished human-review artifacts as markdown or HTML","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fskills\u002Fhtml-review-artifact\u002FSKILL.md",[113,116],{"categoryNo":114,"categoryName":115,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发",{"categoryNo":82,"categoryName":83,"taxonomyType":20,"taxonomyTypeDesc":21},[118,119,120,121,122,39,123,124,125,126,127,128],"html","artifact","review","html review artifact","as","framework","wide","guidance","markdown","human","artifacts",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":136,"publishedAt":47},"01M719833M2XWXG1VPBW30GW7J","converge-planning","Design a Converge playbook end-to-end. Use when the user says \"plan a project\", \"design a playbook\", \"decompose into tasks\", \"scaffold a Converge workflow\", \"onboard to Converge\", or asks how to write TASK.md \u002F playbook.yml. Two entry points: plan a new playbook or update an existing one. Hand off to `\u002Fconverge-control` after producing the playbook structure.","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fskills\u002Fconverge-planning\u002FSKILL.md",[135],{"categoryNo":82,"categoryName":83,"taxonomyType":20,"taxonomyTypeDesc":21},[137,138,139,140,95,141,37,142,143,144,145,146,147,148,149,150,151,152,153,44],"converge","converge planning","planning","structure","tasks","decompose","hand","write","plan","how","update","playbook","new","design","how to","end","project",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":162,"publishedAt":47},"01M7197XZT1T9GDYAJGVGX1J60","converge-control","Operate a Converge playbook end-to-end — start runs, monitor progress, narrow failures with `--select`, inspect runtime state, validate definitions, surgically reset subtrees, and stop stuck or orphaned runs. Use this skill whenever the user says \"run my playbook\", \"execute this\", \"monitor the run\", \"converge failed\", \"the run is stuck\", \"retry failures\", \"babysit this playbook\", \"what's the status?\", \"show me the gantt\", or asks how to use `converge run` \u002F `--select` \u002F `inspect` \u002F `doctor` \u002F `clean` \u002F `stop`. Also use it for `HTTP 401` \u002F `Invalid API key` failures on the first task — those are environment-not-playbook problems — and for any post-run cleanup work. Hand off to `converge-planning` if the user wants to design or restructure the playbook itself.","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fskills\u002Fconverge-control\u002FSKILL.md",[160,161],{"categoryNo":82,"categoryName":83,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},[163,164,137,165,166,167,168,169,170,171,143,172,173,150,151,174,152,175,176,177],"converge control","control","operate","invalid","show","api","me","work","reset","show me","cleanup","clean","inspect","select","retry",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":185,"publishedAt":47},"01M7197SCVN0QTD3CM4M83WYJH","repair-taskts","Fix task.ts definition issues — Seed syntax, missing .build(), empty checks, import errors, TypeScript errors","https:\u002F\u002Fgithub.com\u002Fopenplaybooks-dev\u002Fconverge\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fnavigator\u002Frepair\u002Fskill-templates\u002Frepair-taskts\u002FSKILL.md",[184],{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},[186,187,188,189,144,190,191,192,193,43,194,195,196,197,198,152,199,137,200,201],"repair taskts","repair","Bash","edit","read","line","at","spawn","analysis","number","errors","issues","fix","chain","definition","never"]