Логотип Run Tests

Run Tests

СообществоПопулярный
platonai
run-tests

Discovers and runs Browser4 test suites (unit, integration, E2E, CLI, PowerShell, real-world scenarios, production acceptance). Use when asked to run, check, or verify tests.

Add to TypingMind

Обзор

Издательplatonai
РепозиторийBrowser4
Название навыкаrun-tests
Звёзды
1.2K
Форки
152
Файлы в комплекте
Только инструкции
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — platonai. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Run Tests в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/platonai/Browser4/tree/main/coworker/skills/run-tests
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/platonai/Browser4.git /tmp/Browser4
mkdir -p .claude/skills
cp -r /tmp/Browser4/coworker/skills/run-tests .claude/skills/run-tests
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Run Tests в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Run Tests, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Run Tests не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Run Tests

Two test entrypoints:

  • bin/test.ps1 — unified test orchestrator for the Browser4 monorepo. Supports Maven tests, Rust CLI tests, PowerShell *.tests.ps1 files, real-world scenario agent evaluations, and mock-server launch.

  • bin/test-production.ps1 — acceptance test for the latest production release of browser4-cli. Downloads, installs, exercises, uninstalls, and re-installs the global CLI from the public OSS distribution channel.

When to Use

  • "run the tests"
  • "run fast / unit tests"
  • "run integration / it tests"
  • "run e2e tests"
  • "run cli tests"
  • "run all PowerShell tests"
  • "run real-world scenarios"
  • "check what tests would run" (-DryRun / -Show)
  • "resume failed tests"
  • "launch mock server"
  • "run production acceptance test"
  • "acceptance test the latest release"

How It Works

bin/test.ps1 buckets test-type arguments into dispatch categories (Maven, CLI, PowerShell, RWS, server) and runs each in sequence. The script must be invoked from the repository root (it Set-Locations there automatically).

Test results are persisted per invocation to .test-sessions/<session-id>/test-session.json (see bin/common/test-session.psm1). Pass -NoSession to skip persistence or -SessionPath to write to a custom location.

Usage

bash
./bin/test.ps1 [OPTIONS] [TEST-TYPES...] [EXTRA-ARGS...]

Options

FlagDescription
-DryRunCompile only (test-compile), do not run tests
-ShowPrint the final command, do not execute anything
-NoSessionSkip persisting test results to .test-sessions/
-SessionPath <path>Custom path for the test-session JSON file

Test Types

TypeCategoryDescription
fastMavenFast unit tests
itMavenIntegration tests (-DrunITs=true)
e2eMavenEnd-to-end tests (-DrunE2ETests=true)
restMavenREST module tests (-DrunRestTests=true)
skillsMavenSkills-focused agentic tests (browser4-agentic)
mcpMavenMCP-focused agentic tests (browser4-agentic)
mainMavenAll Browser4 main tests: fast + it + e2e + rest
cliCLIRust Browser4 CLI tests (cargo test --test e2e). Alias: browser4-cli
psPowerShellAll *.tests.ps1 files in the project
resumeMavenResume from the last failed module (-rf)
mock-siteServerLaunch MockSiteBoot (aliases: server, mocksite)
rwsRWSReal-world scenario agent evaluations. Bare rws shows help; pass --scenarios or --task to run.

RWS Flags (accepted after rws)

FlagDescription
--scenarios [names...]Run agent-scenario tasks (requires claude or kimi)
--task <file>Run a single task file
--productionUse installed browser4-cli instead of cargo run
--fail-fastStop after the first failing scenario
--listList discovered scenarios, don't run
--silentSuppress agent output
--skip-version-checkSkip browser4-cli version check
--timeout <minutes>Per-task timeout (default: no timeout)

Examples

bash
# Run fast unit tests
./bin/test.ps1 fast

# Show the Maven command without executing
./bin/test.ps1 -DryRun fast

# Run integration tests with extra Maven args
./bin/test.ps1 it -pl browser4-core

# Run end-to-end tests
./bin/test.ps1 e2e

# Run CLI tests (Rust cargo test)
./bin/test.ps1 cli

# Pass extra cargo test args to CLI tests
./bin/test.ps1 cli -- --help

# Run all PowerShell test files (+ the skills/ document conformance check)
./bin/test.ps1 ps

# Run all PS tests quietly
./bin/test.ps1 ps -Quiet

# Run all main tests together
./bin/test.ps1 main

# Run fast tests and PS tests together
./bin/test.ps1 fast ps

# Run fast tests without persisting session
./bin/test.ps1 -NoSession fast

# Write session to a custom path
./bin/test.ps1 -SessionPath out/session.json ps

# Preview what tests would be run
./bin/test.ps1 -Show main

# Resume from the last failed Maven module
./bin/test.ps1 resume

# Launch the mock server
./bin/test.ps1 mock-site -Dmock.site.port=18080

# Run all real-world scenarios
./bin/test.ps1 rws --scenarios

# Run a specific scenario
./bin/test.ps1 rws --scenarios amazon

# Run scenarios against installed production CLI
./bin/test.ps1 rws --scenarios --production

# List discovered scenarios
./bin/test.ps1 rws --scenarios --list

# Run a single task file directly
./bin/test.ps1 rws --task tasks/real-world/generic/amazon.md

# Run scenarios with 30-minute per-task timeout
./bin/test.ps1 rws --scenarios --timeout 30

Test Session

After each invocation, results are persisted to .test-sessions/<session-id>/test-session.json. To inspect the latest session:

bash
ls -t .test-sessions/*/test-session.json | head -1 | xargs cat

The session records the last status, log paths, per-file results (for ps), system environment, and a rolling 5-entry history per test type. Pass -NoSession to skip persistence, or -SessionPath <path> to write to a custom location.

Production Acceptance Test

bin/test-production.ps1 simulates a real end user's journey with the published browser4-cli release. It is designed to be run in CI or locally before tagging a release.

Safe default

Running with no arguments shows help (safe default):

bash
./bin/test-production.ps1

Options

FlagDescription
-WorkingDir <path>Working directory for temporary artifacts (default: random subdir under system temp)
-StressEnable the multi-scenario stress suite (opt-in)
-MultiScenariosIterations <n>Iterations for the multi-scenario suite (default: 1, only with -Stress)
-RemoveWorkingDirDelete the working directory on exit (default: preserved for review)

What it tests

  1. Creates an isolated working directory (default: system temp + random suffix)
  2. Cleans any pre-existing global browser4-cli installation
  3. Installs the latest CLI via the remote bootstrap script (unmodified)
  4. Verifies the CLI is on PATH after install (fails if the install script is broken)
  5. Smoke-tests: --help, --version, config --help, agent-run --help, invalid command
  6. Cold-starts the browser server (open), verifies health endpoint responds
  7. Measures warm-start latency vs cold-start (cycle 2)
  8. Shuts down the server (close-all, kill-all), verifies it's unreachable
  9. Uninstalls and verifies runtime data is removed
  10. Repeats the install cycle to verify idempotency
  11. (With -Stress) Runs multi-scenarios.ps1 against the global CLI

Key principle

The script acts like a real end user — it does not patch install scripts, create missing symlinks, or manually clean up after uninstall. If any of those are needed, the test fails because a real user would hit the same broken behavior.

Examples

bash
# Show help (no arguments = safe default)
./bin/test-production.ps1

# Run the full acceptance test
./bin/test-production.ps1 -Stress

# Production CI: stress test with multiple iterations, clean up afterward
./bin/test-production.ps1 -Stress -MultiScenariosIterations 3 -RemoveWorkingDir

# Use a specific working directory
./bin/test-production.ps1 -WorkingDir /tmp/my-acceptance-test

Часто задаваемые вопросы

Что делает навык ИИ Run Tests?

Discovers and runs Browser4 test suites (unit, integration, E2E, CLI, PowerShell, real-world scenarios, production acceptance). Use when asked to run, check, or verify tests.

Зачем использовать Run Tests в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Run Tests — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Run Tests в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/platonai/Browser4/tree/main/coworker/skills/run-tests. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Run Tests?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Run Tests?

С любым количеством. В TypingMind вы можете использовать Run Tests с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Run Tests?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — platonai. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Slack E2e

openclaw
ОрганизацияПопулярный

Тестируйте Slack с пользовательской OAuth-аутентификацией на основе Convex или QA-ботами: проверяйте учётные данные, отправляйте сообщения от имени подконтрольных пользователей, проверяйте работу Gateway и отличайте данные API от взаимодействий в клиенте Slack.

82.2K
391K
Файлы: 4
Открыть
Логотип openclaw

Telegram E2e Userbot

openclaw
ОрганизацияПопулярный

Проверяйте поведение OpenClaw в Telegram, видимое пользователям, на тестовом сервере Telegram с командными учетными данными, полученными через аренду Convex; проводите диалоги от имени реальных пользователей и фиксируйте сообщения, их редактирование и удаление, реакции, ввод текста и расширенный контент…

82.2K
391K
Файлы: 45
Открыть
Логотип affaan-m

Module Regression

affaan-m
СообществоПопулярный

Govern cross-module regression in large repositories with a REGRESSION.md ledger that records each module's downstream consumers and executable acceptance command. After a change, run the changed…

41.4K
277.3K
Файлы: 2
Открыть
Логотип affaan-m

Test Collaboration

affaan-m
СообществоПопулярный

Inventory and govern a project's test assets. Connect requirements, business rules, risks, bugs, and cross-boundary contracts to stable TEST-IDs and executable evidence in the repository's existing…

41.4K
277.3K
Файлы: 2
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇