{"id":"52bbc358-68b6-4d92-ad0c-d8c9fd7b105a","shortId":"bmVBe3","kind":"skill","title":"cometchat-flutter-v5-testing","tagline":"Testing patterns for CometChat Flutter UIKit v5 (GetX-based). Covers flutter_test (built-in), mocktail for SDK mocking, widget tests around CometChat widgets, integration_test for real-device flows, golden tests for theming, and CI on GitHub Actions / Codemagic. Sister skill of c","description":"## Purpose\n\nTest recipes for Flutter UIKit v5. Covers the GetX-flavored patterns; v6 (Bloc) has its own skill (`cometchat-flutter-v6-testing`).\n\n**Read these other skills first:**\n- `cometchat-flutter-v5-core` — UIKitSettingsBuilder, init/login order, GetX scope rules\n- `cometchat-flutter-v5-events` — event subscription patterns the tests assert against\n\n**Ground truth:**\n- flutter_test — https://api.flutter.dev/flutter/flutter_test/flutter_test-library.html\n- mocktail — https://pub.dev/packages/mocktail\n\n---\n\n## 1. Test layers\n\n| Layer | Test runner | Speed | What it covers |\n|---|---|---|---|\n| Unit | `flutter test` (Dart VM) | Fastest | Pure Dart logic — services, models |\n| Widget | `flutter test` (test environment) | Fast | Single widget, mocked dependencies |\n| Integration | `flutter test integration_test/` (real device or simulator) | Slow | Full app flow, real SDK or mocked |\n| Golden | `flutter test --update-goldens` then assert | Fast | Visual regression |\n\nThe skill writes all four; CI runs unit + widget + golden by default; integration runs on demand.\n\n---\n\n## 2. Mocking the SDK with mocktail\n\n```yaml\n# pubspec.yaml — dev dependencies\ndev_dependencies:\n  flutter_test:\n    sdk: flutter\n  mocktail: ^1.0.0\n  integration_test:\n    sdk: flutter\n```\n\n### Wrap the SDK in protocols (testable abstraction)\n\n```dart\n// lib/services/cometchat_service.dart\nimport 'package:cometchat_calls_uikit/cometchat_calls_uikit.dart';\n\nabstract class CometChatService {\n  Future<void> init();\n  Future<User> login(String uid);\n  Future<void> logout();\n  User? getLoggedInUser();\n  Future<TextMessage> sendMessage(TextMessage message);\n}\n\nclass CometChatServiceImpl implements CometChatService {\n  @override\n  Future<void> init() async {\n    final settings = (UIKitSettingsBuilder()\n          ..appId = CometChatConfig.appId\n          ..region = CometChatConfig.region\n          ..authKey = CometChatConfig.authKey\n          ..subscriptionType = CometChatSubscriptionType.allUsers\n          ..callingExtension = CometChatCallingExtension())\n        .build();\n    await CometChatUIKit.init(uiKitSettings: settings);\n  }\n\n  @override\n  Future<User> login(String uid) async {\n    final completer = Completer<User>();\n    CometChatUIKit.login(uid, onSuccess: completer.complete, onError: completer.completeError);\n    return completer.future;\n  }\n\n  @override\n  Future<void> logout() async {\n    final completer = Completer<void>();\n    CometChatUIKit.logout(onSuccess: () => completer.complete(), onError: completer.completeError);\n    return completer.future;\n  }\n\n  @override\n  User? getLoggedInUser() => CometChatUIKit.getLoggedInUser();\n\n  @override\n  Future<TextMessage> sendMessage(TextMessage message) async {\n    final completer = Completer<TextMessage>();\n    CometChatUIKit.sendTextMessage(textMessage: message, onSuccess: completer.complete, onError: completer.completeError);\n    return completer.future;\n  }\n}\n```\n\nInject via your DI / GetX scope:\n\n```dart\nfinal cometchatService = Get.put<CometChatService>(CometChatServiceImpl());\n```\n\nIn tests, swap with a mock:\n\n```dart\nclass MockCometChatService extends Mock implements CometChatService {}\n\nsetUp(() {\n  Get.reset();\n  final mock = MockCometChatService();\n  when(() => mock.init()).thenAnswer((_) async {});\n  when(() => mock.login(any())).thenAnswer((_) async => testUser);\n  Get.put<CometChatService>(mock);\n});\n\ntearDown(() {\n  Get.reset();\n});\n```\n\n**`Get.reset()`** between tests is critical — GetX's singleton container persists across tests otherwise.\n\n---\n\n## 3. Widget tests\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_test/flutter_test.dart';\nimport 'package:mocktail/mocktail.dart';\nimport 'package:get/get.dart';\nimport 'package:your_app/screens/chat_screen.dart';\nimport 'package:your_app/services/cometchat_service.dart';\n\nclass MockCometChatService extends Mock implements CometChatService {}\n\nvoid main() {\n  late MockCometChatService mock;\n\n  setUp(() {\n    Get.reset();\n    mock = MockCometChatService();\n    when(() => mock.init()).thenAnswer((_) async {});\n    when(() => mock.login(any())).thenAnswer((_) async => User(uid: 'cometchat-uid-1', name: 'Alice'));\n    Get.put<CometChatService>(mock);\n  });\n\n  tearDown(() => Get.reset());\n\n  testWidgets('shows loading until login resolves', (tester) async {\n    final loginCompleter = Completer<User>();\n    when(() => mock.login(any())).thenAnswer((_) => loginCompleter.future);\n\n    await tester.pumpWidget(MaterialApp(home: ChatScreen()));\n    await tester.pump();                                     // start the build\n\n    expect(find.byType(CircularProgressIndicator), findsOneWidget);\n\n    loginCompleter.complete(User(uid: 'cometchat-uid-1'));\n    await tester.pumpAndSettle();\n\n    expect(find.byType(CircularProgressIndicator), findsNothing);\n    expect(find.text('Conversations'), findsOneWidget);\n  });\n\n  testWidgets('shows error when login fails', (tester) async {\n    when(() => mock.login(any())).thenThrow(Exception('401 Unauthorized'));\n\n    await tester.pumpWidget(MaterialApp(home: ChatScreen()));\n    await tester.pumpAndSettle();\n\n    expect(find.textContaining('Unauthorized'), findsOneWidget);\n  });\n}\n```\n\n`pumpAndSettle()` waits for animations + Futures to complete.\n\n---\n\n## 4. Mocking CometChat widgets that ship with the kit\n\n`CometChatConversations`, `CometChatMessageList`, etc. are real widgets that try to render against a real SDK during tests. Two strategies:\n\n### Strategy A — Replace at the import level\n\nIf your widget composition is small (3-5 CometChat widgets), make them swappable:\n\n```dart\n// chat_screen.dart\nclass ChatScreen extends StatelessWidget {\n  final WidgetBuilder conversationsBuilder;\n\n  const ChatScreen({this.conversationsBuilder = _defaultConversations});\n\n  static Widget _defaultConversations(BuildContext context) =>\n      const CometChatConversations();\n\n  @override\n  Widget build(BuildContext context) => Scaffold(body: conversationsBuilder(context));\n}\n\n// In tests:\ntestWidgets('chat screen renders', (tester) async {\n  await tester.pumpWidget(MaterialApp(\n    home: ChatScreen(conversationsBuilder: (_) => const Text('mock convo list')),\n  ));\n  expect(find.text('mock convo list'), findsOneWidget);\n});\n```\n\n### Strategy B — Skip widget tests, focus on service tests\n\nFor larger compositions, test the service layer (which is fully mockable) and rely on integration tests for widget assertions. Pragmatic for v5 because the kit's widgets aren't designed for unit testing.\n\n---\n\n## 5. Integration tests\n\n```dart\n// integration_test/chat_test.dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_test/flutter_test.dart';\nimport 'package:integration_test/integration_test.dart';\nimport 'package:your_app/main.dart' as app;\n\nvoid main() {\n  IntegrationTestWidgetsFlutterBinding.ensureInitialized();\n\n  testWidgets('login and see conversations', (tester) async {\n    app.main();\n    await tester.pumpAndSettle(Duration(seconds: 10));      // generous for real SDK init\n\n    expect(find.text('Welcome'), findsOneWidget);\n\n    await tester.tap(find.text('Messages'));\n    await tester.pumpAndSettle();\n\n    // Real SDK + real test app: assert that at least one conversation exists\n    // (cometchat-uid-1 has pre-seeded conversations with uid-2..5)\n    expect(find.byType(ListTile), findsAtLeastNWidgets(1));\n  });\n}\n```\n\nRun on a real device or simulator:\n\n```bash\nflutter test integration_test/chat_test.dart\n```\n\nFor CI:\n\n```bash\nflutter test integration_test/chat_test.dart --device-id=emulator-5554\n```\n\n---\n\n## 6. Golden tests\n\n```dart\ntestWidgets('chat bubble renders correctly in light theme', (tester) async {\n  await tester.pumpWidget(MaterialApp(\n    theme: ThemeData.light(),\n    home: Scaffold(\n      body: ChatBubble(\n        message: TextMessage(text: 'Hello', senderUid: 'alice'),\n      ),\n    ),\n  ));\n\n  await expectLater(\n    find.byType(ChatBubble),\n    matchesGoldenFile('goldens/chat_bubble_light.png'),\n  );\n});\n```\n\nFirst run:\n\n```bash\nflutter test --update-goldens\n```\n\nCommit the `goldens/` folder. Subsequent runs assert against it.\n\n**Gotcha:** golden tests are pixel-perfect; small rendering differences between Flutter versions / OS versions cause failures. Pin Flutter SDK version in CI.\n\n---\n\n## 7. CI configuration\n\n### GitHub Actions\n\n```yaml\nname: tests\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: subosito/flutter-action@v2\n        with: { flutter-version: 3.16.0, channel: stable }\n      - run: flutter pub get\n      - run: flutter test\n        env:\n          COMETCHAT_TEST_APP_ID:    ${{ secrets.TEST_COMETCHAT_APP_ID }}\n          COMETCHAT_TEST_REGION:    ${{ secrets.TEST_COMETCHAT_REGION }}\n          COMETCHAT_TEST_AUTH_KEY:  ${{ secrets.TEST_COMETCHAT_AUTH_KEY }}\n\n  integration:\n    runs-on: macos-13\n    needs: test\n    steps:\n      - uses: actions/checkout@v4\n      - uses: subosito/flutter-action@v2\n        with: { flutter-version: 3.16.0, channel: stable }\n      - uses: futureware-tech/simulator-action@v3\n        with: { model: \"iPhone 15\", os: iOS, os_version: \"17.0\" }\n      - run: flutter pub get\n      - run: |\n          flutter test integration_test/chat_test.dart \\\n            --dart-define=COMETCHAT_APP_ID=${{ secrets.TEST_COMETCHAT_APP_ID }} \\\n            --dart-define=COMETCHAT_REGION=${{ secrets.TEST_COMETCHAT_REGION }} \\\n            --dart-define=COMETCHAT_AUTH_KEY=${{ secrets.TEST_COMETCHAT_AUTH_KEY }}\n```\n\n### Codemagic\n\nCodemagic is Flutter-native. Add a workflow:\n\n```yaml\nworkflows:\n  test:\n    name: Flutter tests\n    instance_type: mac_mini_m1\n    scripts:\n      - name: Get dependencies\n        script: flutter pub get\n      - name: Run tests\n        script: flutter test\n      - name: Run integration tests\n        script: |\n          flutter test integration_test/chat_test.dart \\\n            --dart-define=COMETCHAT_APP_ID=$COMETCHAT_APP_ID \\\n            ...\n```\n\nCodemagic's env vars come from the project settings UI.\n\n---\n\n## 8. Anti-patterns\n\n1. **Skipping `Get.reset()`** between tests. GetX singletons persist across tests; \"test 2 inherits test 1's state\" flakes are common.\n2. **Awaiting `pumpAndSettle()` with no timeout.** Real SDK calls can hang; tests timeout after 30s with no useful error. Pass `Duration(seconds: 10)` explicitly.\n3. **Using `mocktail` without registering all dependencies.** `Get.put` requires every injected service; partial mocks crash with \"not registered.\"\n4. **Hardcoding the Auth Key in test files.** Use `--dart-define` flags. Same rule as production.\n5. **Goldens that depend on system fonts.** They render differently on macOS vs Linux CI. Use `Roboto` (Material default) and pin Flutter SDK version.\n6. **Real WebSocket calls in unit tests.** The CometChat SDK opens a WebSocket on init; if you call real `init` in a unit test, the test slows to seconds and may flake. Mock the service.\n\n## 9. Verification checklist\n\n- [ ] `CometChatService` abstraction (or similar) wrapping the SDK\n- [ ] `MockCometChatService` in test setup; `Get.put<CometChatService>(mock)` per test\n- [ ] `Get.reset()` in tearDown\n- [ ] At least one widget test for \"loading state until login resolves\"\n- [ ] At least one widget test for \"error UI on init/login failure\"\n- [ ] Golden tests for at least one chat surface (light + dark theme)\n- [ ] Integration test in `integration_test/` for the login + see conversations flow\n- [ ] CI separates unit + integration; uses dedicated CometChat test app via `--dart-define`\n- [ ] Flutter SDK version pinned in CI (no \"channel: stable\" alone)\n\n## 10. Pointers\n\n- `cometchat-flutter-v5-core` — UIKitSettingsBuilder, init/login order\n- `cometchat-flutter-v5-events` — listener subscription patterns\n- `cometchat-flutter-v5-troubleshooting` — when tests pass but production breaks\n- `cometchat-flutter-v6-testing` — V6 patterns (Bloc-based; different)","tags":["cometchat","flutter","testing","skills","agent-skills","ai-agent","chat","claude-code","cursor","messaging","nextjs","react"],"capabilities":["skill","source-cometchat","skill-cometchat-flutter-v5-testing","topic-agent-skills","topic-ai-agent","topic-chat","topic-claude-code","topic-cometchat","topic-cursor","topic-messaging","topic-nextjs","topic-react","topic-react-native","topic-ui-kit"],"categories":["cometchat-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/cometchat/cometchat-skills/cometchat-flutter-v5-testing","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add cometchat/cometchat-skills","source_repo":"https://github.com/cometchat/cometchat-skills","install_from":"skills.sh"}},"qualityScore":"0.463","qualityRationale":"deterministic score 0.46 from registry signals: · indexed on github topic:agent-skills · 27 github stars · SKILL.md body (11,918 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:04:50.475Z","embedding":null,"createdAt":"2026-05-18T07:04:22.664Z","updatedAt":"2026-05-18T19:04:50.475Z","lastSeenAt":"2026-05-18T19:04:50.475Z","tsv":"'-13':914 '-2':739 '-5':560 '-5554':769 '/flutter/flutter_test/flutter_test-library.html':110 '/packages/mocktail':114 '/simulator-action':935 '1':115,432,475,731,745,1049,1063 '1.0.0':207 '10':700,1091,1275 '15':940 '17.0':945 '2':190,1060,1069 '3':378,559,1093 '3.16.0':876,928 '30s':1083 '4':519,1111 '401':499 '5':662,740,1128 '6':770,1152 '7':845 '8':1045 '9':1187 'abstract':218,226,1191 'across':375,1057 'action':46,849 'actions/checkout':867,919 'add':989 'alic':434,798 'alon':1274 'anim':515 'anti':1047 'anti-pattern':1046 'api.flutter.dev':109 'api.flutter.dev/flutter/flutter_test/flutter_test-library.html':108 'app':157,684,720,889,893,959,963,1030,1033,1260 'app.main':695 'app/main.dart':682 'app/screens/chat_screen.dart':398 'app/services/cometchat_service.dart':402 'appid':254 'aren':656 'around':28 'assert':102,170,647,721,819 'async':250,274,289,309,354,359,421,426,446,493,602,694,783 'auth':903,907,977,981,1114 'authkey':258 'await':265,455,460,476,501,506,603,696,710,714,784,799,1070 'b':621 'base':15,1313 'bash':753,760,807 'bloc':66,1312 'bloc-bas':1311 'bodi':592,791 'break':1303 'bubbl':776 'build':264,464,588 'buildcontext':582,589 'built':20 'built-in':19 'c':51 'call':224,1077,1155,1169 'callingextens':262 'caus':837 'channel':877,929,1272 'chat':598,775,1236 'chat_screen.dart':567 'chatbubbl':792,802 'chatscreen':459,505,569,576,607 'checklist':1189 'ci':43,179,759,844,846,1142,1252,1270 'circularprogressind':467,480 'class':227,243,340,403,568 'codemag':47,983,984,1035 'come':1039 'cometchat':2,9,29,72,82,93,223,430,473,521,561,729,887,892,895,899,901,906,958,962,968,971,976,980,1029,1032,1160,1258,1278,1286,1294,1305 'cometchat-flutter-v5-core':81,1277 'cometchat-flutter-v5-events':92,1285 'cometchat-flutter-v5-testing':1 'cometchat-flutter-v5-troubleshooting':1293 'cometchat-flutter-v6-testing':71,1304 'cometchat-uid':429,472,728 'cometchatcallingextens':263 'cometchatconfig.appid':255 'cometchatconfig.authkey':259 'cometchatconfig.region':257 'cometchatconvers':528,585 'cometchatmessagelist':529 'cometchatservic':228,246,330,345,408,1190 'cometchatserviceimpl':244,332 'cometchatsubscriptiontype.allusers':261 'cometchatuikit.getloggedinuser':303 'cometchatuikit.init':266 'cometchatuikit.login':278 'cometchatuikit.logout':293 'cometchatuikit.sendtextmessage':313 'commit':813 'common':1068 'complet':276,277,291,292,311,312,449,518 'completer.complete':281,295,317 'completer.completeerror':283,297,319 'completer.future':285,299,321 'composit':556,631 'configur':847 'const':575,584,609 'contain':373 'context':583,590,594 'convers':484,692,726,736,1250 'conversationsbuild':574,593,608 'convo':612,617 'core':85,1281 'correct':778 'cover':16,59,124 'crash':1107 'critic':369 'dark':1239 'dart':128,132,219,328,339,381,566,665,773,956,966,974,1027,1121,1263 'dart-defin':955,965,973,1026,1120,1262 'dedic':1257 'default':185,1146 'defaultconvers':578,581 'defin':957,967,975,1028,1122,1264 'demand':189 'depend':145,199,201,1006,1099,1131 'design':658 'dev':198,200 'devic':36,152,750,766 'device-id':765 'di':325 'differ':831,1137,1314 'durat':698,1089 'emul':768 'env':886,1037 'environ':140 'error':488,1087,1225 'etc':530 'event':96,97,1289 'everi':1102 'except':498 'exist':727 'expect':465,478,482,508,614,706,741 'expectlat':800 'explicit':1092 'extend':342,405,570 'fail':491 'failur':838,1229 'fast':141,171 'fastest':130 'file':1118 'final':251,275,290,310,329,348,447,572 'find.bytype':466,479,742,801 'find.text':483,615,707,712 'find.textcontaining':509 'findsatleastnwidget':744 'findsnoth':481 'findsonewidget':468,485,511,619,709 'first':80,805 'flag':1123 'flake':1066,1183 'flavor':63 'flow':37,158,1251 'flutter':3,10,17,56,73,83,94,106,126,137,147,164,202,205,211,387,673,754,761,808,833,840,874,880,884,926,947,951,987,996,1008,1015,1022,1149,1265,1279,1287,1295,1306 'flutter-n':986 'flutter-vers':873,925 'flutter/material.dart':384,670 'focus':625 'folder':816 'font':1134 'four':178 'full':156 'fulli':638 'futur':229,231,235,239,248,270,287,305,516 'futurewar':933 'futureware-tech':932 'generous':701 'get':882,949,1005,1010 'get.put':331,361,435,1100,1201 'get.reset':347,364,365,415,438,1051,1205 'get/get.dart':394 'getloggedinus':238,302 'getx':14,62,89,326,370,1054 'getx-bas':13 'getx-flavor':61 'github':45,848 'golden':38,163,168,183,771,812,815,823,1129,1230 'goldens/chat_bubble_light.png':804 'gotcha':822 'ground':104 'hang':1079 'hardcod':1112 'hello':796 'home':458,504,606,789 'id':767,890,894,960,964,1031,1034 'implement':245,344,407 'import':221,382,385,389,392,395,399,551,668,671,675,679 'inherit':1061 'init':230,249,705,1166,1171 'init/login':87,1228,1283 'inject':322,1103 'instanc':998 'integr':31,146,149,186,208,643,663,666,677,756,763,909,953,1019,1024,1241,1244,1255 'integrationtestwidgetsflutterbinding.ensureinitialized':687 'io':942 'iphon':939 'job':857 'key':904,908,978,982,1115 'kit':527,653 'larger':630 'late':411 'latest':864 'layer':117,118,635 'least':724,1209,1220,1234 'level':552 'lib/services/cometchat_service.dart':220 'light':780,1238 'linux':1141 'list':613,618 'listen':1290 'listtil':743 'load':441,1214 'logic':133 'login':232,271,443,490,689,1217,1248 'logincomplet':448 'logincompleter.complete':469 'logincompleter.future':454 'logout':236,288 'm1':1002 'mac':1000 'maco':913,1139 'main':410,686 'make':563 'matchesgoldenfil':803 'materi':1145 'materialapp':457,503,605,786 'may':1182 'messag':242,308,315,713,793 'mini':1001 'mock':25,144,162,191,338,343,349,362,406,413,416,436,520,611,616,1106,1184,1202 'mock.init':352,419 'mock.login':356,423,451,495 'mockabl':639 'mockcometchatservic':341,350,404,412,417,1197 'mocktail':22,111,195,206,1095 'mocktail/mocktail.dart':391 'model':135,938 'name':433,851,995,1004,1011,1017 'nativ':988 'need':915 'one':725,1210,1221,1235 'onerror':282,296,318 'onsuccess':280,294,316 'open':1162 'order':88,1284 'os':835,941,943 'otherwis':377 'overrid':247,269,286,300,304,586 'packag':222,383,386,390,393,396,400,669,672,676,680 'partial':1105 'pass':1088,1300 'pattern':7,64,99,1048,1292,1310 'per':1203 'perfect':828 'persist':374,1056 'pin':839,1148,1268 'pixel':827 'pixel-perfect':826 'pointer':1276 'pragmat':648 'pre':734 'pre-seed':733 'product':1127,1302 'project':1042 'protocol':216 'pub':881,948,1009 'pub.dev':113 'pub.dev/packages/mocktail':112 'pubspec.yaml':197 'pull':855 'pumpandsettl':512,1071 'pure':131 'purpos':52 'push':854 'read':76 'real':35,151,159,532,540,703,716,718,749,1075,1153,1170 'real-devic':34 'recip':54 'region':256,897,900,969,972 'regist':1097,1110 'regress':173 'reli':641 'render':537,600,777,830,1136 'replac':548 'request':856 'requir':1101 'resolv':444,1218 'return':284,298,320 'roboto':1144 'rule':91,1125 'run':180,187,746,806,818,860,879,883,911,946,950,1012,1018 'runner':120 'runs-on':859,910 'scaffold':591,790 'scope':90,327 'screen':599 'script':1003,1007,1014,1021 'sdk':24,160,193,204,210,214,541,704,717,841,1076,1150,1161,1196,1266 'second':699,1090,1180 'secrets.test':891,898,905,961,970,979 'see':691,1249 'seed':735 'senderuid':797 'sendmessag':240,306 'separ':1253 'servic':134,627,634,1104,1186 'set':252,268,1043 'setup':346,414,1200 'ship':524 'show':440,487 'similar':1193 'simul':154,752 'singl':142 'singleton':372,1055 'sister':48 'skill':49,70,79,175 'skill-cometchat-flutter-v5-testing' 'skip':622,1050 'slow':155,1178 'small':558,829 'source-cometchat' 'speed':121 'stabl':878,930,1273 'start':462 'state':1065,1215 'statelesswidget':571 'static':579 'step':865,917 'strategi':545,546,620 'string':233,272 'subosito/flutter-action':870,922 'subscript':98,1291 'subscriptiontyp':260 'subsequ':817 'surfac':1237 'swap':335 'swappabl':565 'system':1133 'teardown':363,437,1207 'tech':934 'test':5,6,18,27,32,39,53,75,101,107,116,119,127,138,139,148,150,165,203,209,334,367,376,380,543,596,624,628,632,644,661,664,719,755,762,772,809,824,852,858,885,888,896,902,916,952,994,997,1013,1016,1020,1023,1053,1058,1059,1062,1080,1117,1158,1175,1177,1199,1204,1212,1223,1231,1242,1245,1259,1299,1308 'test/chat_test.dart':667,757,764,954,1025 'test/flutter_test.dart':388,674 'test/integration_test.dart':678 'testabl':217 'tester':445,492,601,693,782 'tester.pump':461 'tester.pumpandsettle':477,507,697,715 'tester.pumpwidget':456,502,604,785 'tester.tap':711 'testus':360 'testwidget':439,486,597,688,774 'text':610,795 'textmessag':241,307,314,794 'theme':41,781,787,1240 'themedata.light':788 'thenansw':353,358,420,425,453 'thenthrow':497 'this.conversationsbuilder':577 'timeout':1074,1081 'topic-agent-skills' 'topic-ai-agent' 'topic-chat' 'topic-claude-code' 'topic-cometchat' 'topic-cursor' 'topic-messaging' 'topic-nextjs' 'topic-react' 'topic-react-native' 'topic-ui-kit' 'tri':535 'troubleshoot':1297 'truth':105 'two':544 'type':999 'ubuntu':863 'ubuntu-latest':862 'ui':1044,1226 'uid':234,273,279,428,431,471,474,730,738 'uikit':11,57 'uikit/cometchat_calls_uikit.dart':225 'uikitset':267 'uikitsettingsbuild':86,253,1282 'unauthor':500,510 'unit':125,181,660,1157,1174,1254 'updat':167,811 'update-golden':166,810 'use':866,869,918,921,931,1086,1094,1119,1143,1256 'user':237,301,427,470 'v2':871,923 'v3':936 'v4':868,920 'v5':4,12,58,84,95,650,1280,1288,1296 'v6':65,74,1307,1309 'var':1038 'verif':1188 'version':834,836,842,875,927,944,1151,1267 'via':323,1261 'visual':172 'vm':129 'void':409,685 'vs':1140 'wait':513 'websocket':1154,1164 'welcom':708 'widget':26,30,136,143,182,379,522,533,555,562,580,587,623,646,655,1211,1222 'widgetbuild':573 'without':1096 'workflow':991,993 'wrap':212,1194 'write':176 'yaml':196,850,992","prices":[{"id":"424d985f-59bc-4b2f-9a47-c7980c99f689","listingId":"52bbc358-68b6-4d92-ad0c-d8c9fd7b105a","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"cometchat","category":"cometchat-skills","install_from":"skills.sh"},"createdAt":"2026-05-18T07:04:22.664Z"}],"sources":[{"listingId":"52bbc358-68b6-4d92-ad0c-d8c9fd7b105a","source":"github","sourceId":"cometchat/cometchat-skills/cometchat-flutter-v5-testing","sourceUrl":"https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-flutter-v5-testing","isPrimary":false,"firstSeenAt":"2026-05-18T07:04:22.664Z","lastSeenAt":"2026-05-18T19:04:50.475Z"}],"details":{"listingId":"52bbc358-68b6-4d92-ad0c-d8c9fd7b105a","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"cometchat","slug":"cometchat-flutter-v5-testing","github":{"repo":"cometchat/cometchat-skills","stars":27,"topics":["agent-skills","ai-agent","chat","claude-code","cometchat","cursor","messaging","nextjs","react","react-native","ui-kit"],"license":null,"html_url":"https://github.com/cometchat/cometchat-skills","pushed_at":"2026-05-18T05:04:24Z","description":"Add CometChat chat to any React, Next.js, React Native, Angular, Android, iOS, or Flutter project through your AI coding agent. Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and 50+ more agents.","skill_md_sha":"76fb900d2f84b72fd2a068c732e292f361ff2b97","skill_md_path":"skills/cometchat-flutter-v5-testing/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-flutter-v5-testing"},"layout":"multi","source":"github","category":"cometchat-skills","frontmatter":{"name":"cometchat-flutter-v5-testing","license":"MIT","description":"Testing patterns for CometChat Flutter UIKit v5 (GetX-based). Covers flutter_test (built-in), mocktail for SDK mocking, widget tests around CometChat widgets, integration_test for real-device flows, golden tests for theming, and CI on GitHub Actions / Codemagic. Sister skill of cometchat-flutter-v6-testing — the cohorts have different state-management primitives (GetX vs Bloc) so test patterns differ.","compatibility":"Flutter >= 2.5, Dart >= 2.17; flutter_test (built-in); mocktail >= 1.0; integration_test (built-in); cometchat_chat_uikit ^5.2; cometchat_calls_uikit ^5.0"},"skills_sh_url":"https://skills.sh/cometchat/cometchat-skills/cometchat-flutter-v5-testing"},"updatedAt":"2026-05-18T19:04:50.475Z"}}