testing
БесплатноБез исполняемых скриптовНе проверенPreview testing skill for Lovable projects. Activates when: - preview_testing: on in CLAUDE.md - Running /lovable:test-init, /lovable:test-run, or…
от 10K-Digital★ 23 звезды на GitHubОб этом скилле
Preview Testing Skill
This skill tests Lovable apps in Preview mode - the live, running version of the app - using
browser automation. The canonical workspace is .lovable-agent/tests/; the legacy
.claude/lovable-claude/test/ workspace remains supported and can be migrated with
scripts/migrate-workspace.py.
When to Activate
- Preview testing is enabled in
.lovable-agent/config.jsonor the legacy CLAUDE.md (Preview Testing → Status: on) - User runs testing commands:
/lovable:test-init- Test wizard (scaffold workspace, create test plans)/lovable:test-run- Execute test plans in Preview mode/lovable:test-sync- Resync test plans with new/changed features
- After implementing a feature (when test workspace exists):
- Suggest adding/updating unit tests AND test plans for the new feature
- If
test_after_implementation: on, run the affected test plans automatically
- After auto-deploy (yolo mode integration):
- If
test_after_deploy: on, run smoke-level test plans after deployment
- If
- User mentions preview testing in any form
How Preview Access Works
Lovable Preview is the running app inside the Lovable editor. There are two ways to access it for testing:
Method 1: Logged-in Browser (simplest)
If the user is logged in to Lovable in Chrome (Claude in Chrome extension), navigate directly to the Lovable project preview. No token needed.
Method 2: Tokenized Preview URL (works without login)
Lovable exposes a shareable preview URL with an access token:
https://preview--[app-name].lovable.app/?__lovable_token=[JWT]
- The user gets this URL by opening their Lovable project in preview mode and clicking the arrow icon at the top, next to the address bar - this opens the preview in a new tab with the token in the URL.
- The token is valid for 7 days. After expiry, ask the user to capture a fresh URL.
- The token is a credential - never commit it to git. Store it in
.lovable-agent/preview-token.local(gitignored); accept the legacy token path during migration.
See references/preview-access.md for full procedures: capture, storage, expiry detection, and re-prompting.
Access Priority
- Valid stored token → use tokenized preview URL (most reliable, no login dependency)
- No/expired token + user logged in to Lovable in Chrome → use logged-in browser session
- Neither → ask the user to either log in or provide a fresh preview URL with token
- Fallback: provide manual test checklist for the user to run themselves (never block)
Test accounts in Lovable drafts
In a draft with its own backend, sign in with the draft's demo accounts or the accounts defined in
db/seed.sql; live accounts do not exist there (see ../lovable/references/drafts.md). Since
November 23, 2026 Lovable can create a temporary test user: sign-in only on the built-in backend,
approved each time in the project's chat, and removed at the end of the response. Never select
"Always allow" for it without the user's OK.
Test Workspace Structure
All testing artifacts live in a standardized folder in the user's project:
.lovable-agent/
├── config.json
├── context.md
├── preview-token.local # Preview token ONLY - gitignored
└── tests/
├── README.md
├── plans/
├── profiles/
└── results/
The legacy alias remains readable:
.claude/lovable-claude/test/
├── README.md # Explains the workspace (generated)
├── test-config.json # Preview URL (no token), settings, coverage state
├── preview-token.local # Preview token ONLY - gitignored, 7-day validity
├── plans/ # Test plans (one file per plan)
│ ├── TP-001-user-signup.md
│ ├── TP-002-create-project.md
│ └── ...
├── profiles/ # Test user profiles (test accounts, personas, data)
│ ├── default.json
│ └── admin.json
└── results/ # Test run results (one file per run)
└── 2026-06-10-TP-001.md
See references/test-plan-format.md for the standardized formats of every file type.
Core Functionality
1. Test Wizard (/lovable:test-init)
Guided creation of the test workspace:
- Scaffold
.lovable-agent/tests/and.lovable-agent/config.jsonstructure - Capture preview URL + token (or detect logged-in browser)
- Scan the codebase to identify the app's main user actions (routes, forms, auth flows, CRUD operations, edge function calls)
- Suggest test plans for each main action, ask guided questions to refine them
- Create test user profiles
- Write standardized test plan files
- Record coverage state (git commit hash) in
.lovable-agent/config.jsonundertesting
See references/test-wizard.md for the complete wizard procedure.
2. Test Execution (/lovable:test-run)
Execute test plans against the Preview app via browser automation:
- Navigate to preview (tokenized URL or logged-in session)
- Execute each test plan step-by-step (clicks, form
Установить testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл testing?
Preview testing skill for Lovable projects. Activates when: - preview_testing: on in CLAUDE.md - Running /lovable:test-init, /lovable:test-run, or /lovable:test-sync commands - After implementing a new feature when test plans exist (suggest test updates) - After auto-deploy completes when test_after_deploy: on - Any mention of "test in preview", "preview testing", "test plans", "e2e tests in Lovable" Tests the running app in Lovable Preview mode via browser automation. Manages standardized test plans, test profiles, and results in .lovable-agent/tests/ while preserving .claude/lovable-claude/test/ as a backward-compatible alias. Keeps test plans in sync with the codebase as features are added.
Как установить скилл testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic