# Frb Test

> Use when needing to run tests locally in flutter_rust_bridge, or when debugging test failures before pushing

- Skill: `tomevault-io/frb-test` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/frb-test`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/frb-test/raw
- Safety review: WARNING (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/frb-test

---


# FRB Testing

> **Note:** Check your user-level `remote-testing` rules before running commands. Tests may require remote execution.

## Overview

Maps change types to local test commands. Tests run on CI by default, so local testing is optional but useful for debugging.

## Quick Reference

| Change Type | Command |
|-------------|---------|
| All Rust packages | `./frb_internal test-rust` |
| `frb_rust/` | `./frb_internal test-rust-package --package frb_rust` |
| `frb_codegen/` | `./frb_internal test-rust-package --package frb_codegen` |
| Specific Rust package | `./frb_internal test-rust-package --package <path>` |
| `frb_dart/` | `./frb_internal test-dart-native --package frb_dart` |
| Dart example | `./frb_internal test-dart-native --package frb_example/<name>` |
| Flutter example | `./frb_internal test-flutter-native --package frb_example/flutter_<name>` |
| Web test | `./frb_internal test-dart-web --package frb_example/<name>` |

## Web Tests

Web tests compile Dart tests to WebAssembly and run in a headless browser.

### Supported Packages
- `frb_dart`
- `frb_example/dart_minimal`
- `frb_example/pure_dart`
- `frb_example/pure_dart_pde`

### Requirements
- `wasm32-unknown-unknown` target: `rustup target add wasm32-unknown-unknown --toolchain nightly-2025-02-01`
- `rust-src` component: `rustup component add rust-src --toolchain nightly-2025-02-01`
- `wasm-pack`: `curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh`
- Chrome/Chromium browser

### Running in Docker
When running web tests in Docker containers, puppeteer needs `--no-sandbox` flag. The test runner auto-detects Docker environment via `/.dockerenv`.

## When to Test Locally

**Run:** Debugging test failure, developing new tests, verifying fix before push

**Skip:** Documentation only, CI will catch it, just checking compilation

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/fzyzcjy) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

