К основному содержанию
скилл CX Codex

revenuecat-testing-setup — скилл для Claude Code: тест покупок

Настраивает тестовую среду для покупок RevenueCat: Test Store, StoreKit, sandbox, внутреннее тестирование Google Play.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add RevenueCat/ai-toolkit --skill revenuecat-testing-setup -a claude-code
Открыть на GitHub

Что делает revenuecat-testing-setup

Скилл разбирает, как проверять покупки RevenueCat, не списывая реальные деньги. Сначала он смотрит на рабочий каталог и определяет платформу по первому совпадению: react-native-purchases в package.json, pubspec.yaml, блок kotlin { … } в build.gradle.kts, com.android.application или файлы Xcode и Podfile. Дальше открывает нужный файл платформы и ведёт по шагам.

Внутри описаны каналы тестирования по убыванию скорости итераций. RevenueCat Test Store — синтетический магазин: SDK настраивается ключом с префиксом test_, покупка открывает диалог с выбором исхода, а записи всё равно попадают в CustomerInfo и на дашборд. Ключ Test Store нельзя выпускать в релиз, поэтому его прячут за конфигурацией сборки. Дальше идут StoreKit Configuration File, sandbox Apple ID и Internal Testing с license tester — там уже настоящие чеки, но сборка и ожидание регистрации товара замедляют цикл.

Отдельный пункт — проверять результат на дашборде, а не на устройстве. Успех на экране не значит, что транзакция записалась: смотрите вид Sandbox, владельца appUserID и активный entitlement. Для сценариев первой покупки и триалов нужен свежий тестовый аккаунт, потому что история покупок за ним сохраняется.

Какие задачи решает

  • настроить тестовую среду RevenueCat без реальных списаний
  • выбрать между Test Store, StoreKit и sandbox по скорости итераций
  • проверить, что транзакция дошла до дашборда и entitlement включился
  • протестировать первую покупку и триал на чистом аккаунте
  • ускорить проверку продлений подписки в sandbox

Примеры запросов агенту

  • Настрой тестирование покупок RevenueCat для моего Flutter-проекта
  • Как протестировать paywall без реальных денег в этом проекте?
  • Собери sandbox-окружение для покупок на iOS

Как установить revenuecat-testing-setup

1Через Skills CLI (Vercel)

npx skills add RevenueCat/ai-toolkit --skill revenuecat-testing-setup -a claude-code

2Вручную: положить файлы

~/.claude/skills/revenuecat-testing-setup/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/revenuecat-testing-setup/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора25

integrate-revenuecat Скилл проводит интеграцию RevenueCat целиком: заводит проект и приложение в дашборде, выдаёт публичный API-ключ и настраивает Purchases SDK в приложении. CX Codex +1 1 000установок revenuecat-purchase-flow Скилл для ИИ-агента, который пишет логику покупки подписки и восстановления покупок на RevenueCat. Пригодится, когда за кастомным пейволлом нужен рабочий purchase и кнопка Restore. CX Codex +1 978установок revenuecat-entitlements-gate Скилл проверяет активные entitlements в RevenueCat и решает, показывать ли платную функцию. Пригодится, когда нужно спрятать фичу за подпиской. CX Codex +1 831установок revenuecat-status Собирает отчёт по проекту RevenueCat: приложения, продукты, entitlements, offerings и вебхуки. Пригодится, когда нужно быстро понять, что настроено. CX Codex +1 825установок revenuecat-identify-user Связывает пользователей приложения с подписчиками RevenueCat: вызывает logIn и logOut в нужный момент авторизации. CX Codex +1 788установок revenuecat-charts Скилл учит агента запрашивать графики RevenueCat: сначала схему опций, потом данные, с разбором метрик подписок. CX Codex +1 757установок revenuecat-customer-center Добавляет в приложение готовый экран Customer Center из RevenueCat: подписчик сам отменяет подписку, запрашивает возврат и восстанавливает покупки. CX Codex +1 715установок revenuecat-migrate Скилл помогает перевести покупки в приложении на RevenueCat или обновить SDK до новой мажорной версии. Сначала определяет платформу, потом ведёт по шагам. CX Codex +1 700установок

Похожие

mobile-app-testing secondsky Скилл для тестирования мобильных приложений: юнит-тесты, UI-автоматизация, E2E и производительность. Пригодится, когда нужно настроить тестовую инфраструктуру. CX Codex +1 467установок testing-setup Google LLC Анализирует текущую стратегию тестирования Android-приложения и помогает установить библиотеки, инфраструктуру и фреймворки для unit-тестов, UI-тестов, скриншот-тестов и e2e-тестов. CX Codex +1 2 500установок asc-revenuecat-catalog-sync rorkai Сверяет каталог подписок и встроенных покупок App Store Connect с продуктами RevenueCat. Нужен перед запуском или при устранении расхождений между каталогами. CX Codex +1 6 100установок setup-visual-testing davila7 Слэш-команда разворачивает визуальное регрессионное тестирование: снимки компонентов и страниц, адаптивные брейкпоинты, проверка доступности. 300установок paywall-optimization appeeky Скилл для аудита и A/B-тестов пейвола в подписочных приложениях. Помогает найти слабую ступень воронки и починить её. CX Codex +1 1 900установок limrun-detox-testing limrun-inc Помогает настроить, запустить и отладить тесты Detox на удалённых симуляторах Limrun iOS. Пригодится при пробросе туннелей к медиатору и инжекции рантайма в приложение. CX Codex +1 43 100установок

Рядом в теме «Тесты и QA»

Всё по теме «Тесты и QA» →

Вопросы о revenuecat-testing-setup

Как установить revenuecat-testing-setup в Claude?

Выполните npx skills add RevenueCat/ai-toolkit --skill revenuecat-testing-setup -a claude-code. Скилл окажется в ~/.claude/skills/revenuecat-testing-setup/SKILL.md.

Что делает revenuecat-testing-setup?

Определяет платформу проекта и настраивает канал тестирования покупок RevenueCat: Test Store, StoreKit Configuration File, sandbox Apple ID или Internal Testing с license tester.

Чем Test Store отличается от sandbox?

Test Store — синтетический магазин с ручным выбором исхода покупки, итерации быстрые. Sandbox и Internal Testing работают через реальные бэкенды магазинов и дают настоящие чеки, но собирать и ждать приходится дольше.

Исходный текст

SKILL.md · MIT
---
name: revenuecat-testing-setup
description: Set up a testing environment for RevenueCat purchases without charging real money. Use when the user says test RevenueCat purchases, sandbox setup, StoreKit configuration file, license tester, how do I test purchases without real money, set up sandbox account, internal testing track, or test paywall on iOS, Android, Kotlin Multiplatform, Flutter, or React Native.
---

# revenuecat-testing-setup: set up a testing environment for RevenueCat purchases

Use this skill when the user wants to test purchases against RevenueCat without charging real money. Each store has its own testing channel, and each channel has different fidelity and iteration cost.

## 1. Detect the platform

Inspect the working directory and pick the **first** match, from top to bottom:

1. **React Native**: `package.json` has a `react-native-purchases` entry, or `react-native` as a dependency → read `platforms/react-native.md`. If `expo` is also a dependency, note it as an Expo project.
2. **Flutter**: `pubspec.yaml` exists at the project root → read `platforms/flutter.md`.
3. **Kotlin Multiplatform**: `build.gradle.kts` contains a `kotlin { … }` multiplatform source sets block, or depends on `com.revenuecat.purchases:purchases-kmp*` → read `platforms/kmp.md`.
4. **Android (native)**: `build.gradle(.kts)` applies `com.android.application` (and is not KMP) → read `platforms/android.md`.
5. **iOS (native)**: `Package.swift`, `*.xcodeproj`, `*.xcworkspace`, or `Podfile` at the project root → read `platforms/ios.md`.

If several match (e.g. an `ios/` folder inside a Flutter project), pick the **outermost** project, the one that owns the build. If still ambiguous, ask the user which platform they want to configure.

## 2. Shared concepts (all platforms)

### You cannot charge real money during development

Each store has a dedicated testing channel. Choosing the right channel depends on what you want to test.

### Testing channels by fidelity vs iteration cost

Higher fidelity exercises more of the real purchase pipeline. Lower fidelity iterates faster.

- **RevenueCat Test Store (lowest fidelity, fastest iteration, deterministic).** A synthetic store hosted by RevenueCat. The SDK is configured with a `test_…` API key from the dashboard. Purchases open a Test Store dialog where you pick the outcome by hand: Successful Purchase, Failed Purchase, or Cancel. Purchases trigger entitlements, update `CustomerInfo`, and appear on the dashboard, but no Apple or Google call happens. Best for paywall iteration, integration tests, and CI smoke runs.
- **iOS StoreKit Configuration File (low fidelity, Apple synthetic).** Xcode stubs the store locally. Purchases succeed instantly with no App Store Connect round trip. Useful when you need StoreKit specific behavior. RevenueCat transactions in this mode may or may not appear on the dashboard depending on SDK version and intended routing, so it is not a faithful dashboard test.
- **iOS Sandbox (real sandbox Apple ID) / Android Internal Testing (license tester).** Real store backends, real RevenueCat dashboard ingestion, real receipts. Slower to iterate: build, install, wait for Play propagation or App Store Connect to register the product.
- **TestFlight (iOS) / Closed or Open Testing (Android).** Behaves very close to production. Receipts are production style. Transactions land in the **production** RevenueCat dashboard, not the Sandbox view.
- **Production.** Real money. Do not use for testing.

Start with the lowest fidelity that answers the question, then move up. UI and paywall iteration belongs in the fast channel. "Does my entitlement actually flip?" belongs in sandbox or internal testing.

### Test Store: when to reach for it before sandbox

RevenueCat's Test Store is a synthetic store provider configured per project on the dashboard. It produces real RevenueCat backend records (`CustomerInfo` updates, entitlement transitions, dashboard transactions) without calling App Store or Google Play. The price of that speed is fidelity. Test Store does not simulate Ask to Buy approval flows, region specific pricing, server side receipt validation specifics, store level review or rejection paths, or full subscription renewal cadence (Test Store renews up to five times on a compressed clock).

Use Test Store when you want to iterate on UI quickly, write integration tests with deterministic outcomes, or run CI checks. Move up to App Store Sandbox or Google Play Internal Testing for anything that exercises store side behavior.

**Setup.** In the dashboard, go to **Apps and providers** → _Test configuration_ section → **Test Store** → Create / Enable. The Test Store API key appears under **Project Settings → API keys** with a `test_` prefix. Configure the SDK with the test key in debug builds and the production key (`appl_…` / `goog_…`) in release builds. The platform files show the per platform key swap pattern.

Test Store keys must never ship to production. Gate the key behind your build configuration so release binaries cannot route through Test Store.

### Sandbox transactions appear separately on the dashboard

The RevenueCat dashboard has a toggle between **Sandbox** and **Production** views. Sandbox purchases only appear under Sandbox. If a test transaction does not appear there, the SDK is not reporting it (check API key, `configure` call, and network), or the purchase was against a StoreKit config file that does not hit RevenueCat's backend.

### Accelerated renewal in sandbox

Subscription renewals run on accelerated test clocks in sandbox. This lets you exercise renewal logic in minutes instead of weeks.

- iOS sandbox renewal cadence (per Apple's documentation): daily → every 3 minutes, weekly → every 3 minutes, monthly → every 5 minutes, 2 months → every 10 minutes, 3 months → every 15 minutes, 6 months → every 30 minutes, yearly → every hour. Subscriptions auto-renew a maximum of 6 times then expire.
- Android sandbox renewal cadence is documented in Google Play Console → Subscriptions testing. License tester subscriptions renew on the same accelerated clock.

### Use a fresh test user for first purchase flows

Purchase history is attached to the test account (sandbox Apple ID or license tester Gmail) and persists. Testing "first purchase" logic, introductory offers, or free trials against an account that has already used them produces misleading results. Create a new sandbox tester for clean first purchase scenarios.

### Confirm against the dashboard, not the device

A purchase succeeding on the device is not the same as RevenueCat recording it. Always confirm:

1. The transaction appears on the RevenueCat dashboard (Sandbox view).
2. The expected appUserID owns the transaction.
3. The expected entitlement is now active on that user.

If the device shows success but the dashboard shows nothing, something is wrong in the configuration path, not the store.

## 3. Implementation

Read the platform file that matches detection:

- `platforms/ios.md`
- `platforms/android.md`
- `platforms/kmp.md`
- `platforms/flutter.md`
- `platforms/react-native.md`

## 4. Verify

Your testing environment is set up once:

1. A test purchase succeeds end to end from a test user.
2. The transaction appears on the RevenueCat dashboard Sandbox view, attached to the appUserID you logged in with.
3. The expected entitlement is active on `customerInfo` after the purchase completes.
4. Restoring purchases on a fresh install of the app restores the entitlement to the same test user.

If any of those four steps fails, the environment is not ready. The `revenuecat-troubleshoot` skill covers the usual root causes.

© RevenueCat · MIT · RevenueCat/ai-toolkit

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой